:root { --panel: rgba(255, 255, 255, 0.042); --panel-2: rgba(255, 255, 255, 0.068); --panel-3: rgba(255, 255, 255, 0.095); --line: rgba(255, 255, 255, 0.075); --line-2: rgba(255, 255, 255, 0.14); --line-3: rgba(255, 255, 255, 0.24); --text: #eef2f8; --dim: #98a1b6; --dim-2: #646d84; --accent: #7dd3fc; --accent-2: #a78bfa; --accent-3: #f0abfc; --good: #34d399; --warn: #fbbf24; --bad: #f87171; --radius: 16px; --radius-lg: 24px; --radius-xl: 30px; --glass-blur: blur(26px) saturate(180%); --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 0 0 1px rgba(255, 255, 255, 0.045); --shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.95); --shadow-sm: 0 14px 34px -20px rgba(0, 0, 0, 0.9); --ease: cubic-bezier(0.22, 1, 0.36, 1); --ease-spring: cubic-bezier(0.34, 1.42, 0.64, 1); --ease-soft: cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes drift {
}
@keyframes twinkle {
}

@keyframes sheen {
}
@keyframes ping {
}
@keyframes heroGlow {
}
@keyframes heroZoom {
}
@keyframes btnFlow {
}
@keyframes btnSweep {
}
@keyframes imgIn { }
@keyframes shimmer { }
@keyframes dotPulse { }
@keyframes backupIn { }
@keyframes spinSlow { }

/* ============================================================
   閸濆秴绨插?   ============================================================ */
@media (max-width: 900px) {
}
@media (min-width: 901px) and (max-width: 1180px) {
}

@media (max-width: 860px) {
}

/* 閸忚櫕甯€閸斻劍鏅ラ敍姘毀闁插秶閮寸紒鐔活啎缂?*/
@media (prefers-reduced-motion: reduce) {
}
@media (max-width: 1180px) { }
@media (max-width: 860px) { }
@media (max-width: 980px) { }

@media (max-width: 860px) {
}

@media (max-width: 1024px) {
}
@media (max-width: 860px) {
}
@media (max-width: 560px) {
}
@keyframes giIn { }

@media (max-width: 720px) {
}
@keyframes plSpin { }
@keyframes plPulse { }
@keyframes plShimmer { }
@keyframes plSlide { }

@media (prefers-reduced-motion: reduce) {
}
@keyframes histIn {
}

@media (max-width: 1180px) {
}
@media (max-width: 860px) {
}
@keyframes sheenPass {
}
@media (hover: none) { }
@keyframes favPop {
}
@keyframes flowShimmer {
}

@media (prefers-reduced-motion: reduce) {
}

/* 小屏：导航与板块按钮收紧 */
@media (max-width: 860px) {
}

/* 手机端：本周追剧改成可横向滑动，避免 7 列被压扁 */
@media (max-width: 640px) {
}

@keyframes probeSpin { }

@media (max-width: 640px) {
}
@keyframes skyFlow {
}
@keyframes drift {
}

@media (prefers-reduced-motion: reduce) {
}

@media (max-width: 720px) {
}

/* ── 7. 小屏适配 ── */
@media (max-width: 720px) {
}
@keyframes hcSheen {
}

/* 两侧按键在小屏隐藏，靠滑动 */
@media (max-width: 860px) {
}
@media (prefers-reduced-motion: reduce) {
}
@keyframes hrSpin {
}
@media (max-width: 720px) {
}
@keyframes hueFlow {
}.h3-bg { z-index: 0; }
.h3-bg img { transition: opacity 0.5s ease; }
@keyframes h3Slow { }
.h3-shade {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.9) 0%, rgba(5, 8, 15, 0.5) 34%, rgba(5, 8, 15, 0.12) 66%, rgba(5, 8, 15, 0.3) 100%),
    linear-gradient(0deg, rgba(5, 8, 15, 0.66) 0%, rgba(5, 8, 15, 0.3) 22%, rgba(5, 8, 15, 0) 54%);
}
@keyframes h3Gloss {
}


* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "MiSans", "MiSans VF", "Inter", system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
img { display: block; }
::selection { background: rgba(125, 211, 252, 0.3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); background-clip: padding-box; }

/* ============================================================
   閼冲本娅欑仦?   ============================================================ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg-aurora { position: absolute; inset: 0; }.blob { position: absolute; border-radius: 50%; animation: drift 30s var(--ease) infinite alternate; }.b1 { width: 48vw; height: 48vw; left: -14vw; top: -16vw; }.b2 { width: 42vw; height: 42vw; right: -12vw; top: 4vh; animation-delay: -9s; }.b3 { width: 54vw; height: 54vw; left: 26vw; bottom: -32vw; animation-delay: -18s; }
@keyframes drift {
}

/* 閺勭喓鍋ｉ敍姘⒈鐏炲倷绗夐崥宀冨Ν婵傚骏绱濈痪?CSS 娑撳秴宕版稉鑽ゅ殠缁?*/
.bg-stars {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background-repeat: repeat;
  opacity: 0.75;
}
.bg-stars.s1 {
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 38% 68%, rgba(190, 225, 255, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 62% 14%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.1px 1.1px at 82% 52%, rgba(214, 205, 255, 0.8), transparent),
    radial-gradient(1.3px 1.3px at 24% 86%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 72% 82%, rgba(190, 235, 255, 0.7), transparent);
  background-size: 520px 520px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.bg-stars.s2 {
  background-image:
    radial-gradient(1px 1px at 8% 44%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 46% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 68% 62%, rgba(200, 220, 255, 0.55), transparent),
    radial-gradient(1px 1px at 92% 26%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.1px 1.1px at 30% 74%, rgba(255, 255, 255, 0.45), transparent);
  background-size: 340px 340px;
  opacity: 0.55;
  animation: twinkle 11s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle {
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.7;
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: absolute;
  width: 620px; height: 620px;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.09), rgba(167, 139, 250, 0.05) 42%, transparent 68%);
  transform: translate3d(50vw, 32vh, 0) translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.55s var(--ease-soft), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }.topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 18px; height: 66px; padding: 0 clamp(16px, 3vw, 40px); transition: height 0.34s var(--ease), background 0.34s var(--ease), box-shadow 0.34s var(--ease); }
.topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.35), rgba(167, 139, 250, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}.topbar.scrolled { height: 58px; }
.topbar.scrolled::after { opacity: 1; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 33px; height: 33px;
  border-radius: 11px;
  color: #04121b;
  background: linear-gradient(140deg, var(--accent), var(--accent-2) 70%, var(--accent-3));
  box-shadow: 0 8px 26px -8px rgba(125, 211, 252, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 10px 32px -8px rgba(167, 139, 250, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.brand-mark svg { filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.35)); }
.brand-text { font-weight: 750; letter-spacing: 0.6px; font-size: 17px; }
.brand-text em {
  font-style: normal; font-size: 9.5px; letter-spacing: 2.2px;
  color: var(--accent); margin-left: 7px; vertical-align: 3px;
  opacity: 0.85;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}.search { position: relative; display: flex; align-items: center; gap: 9px; flex: 1 1 420px; max-width: 560px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); backdrop-filter: blur(8px); transition: border-color 0.24s, background 0.24s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.search::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(125, 211, 252, 0.6), rgba(167, 139, 250, 0.5), rgba(125, 211, 252, 0.6));
  background-size: 220% 100%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
  animation: sheen 5s linear infinite;
}
.search:focus-within {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(125, 211, 252, 0.055);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.search:focus-within::before { opacity: 1; }
.search-icon { color: var(--dim-2); flex: none; transition: color 0.24s; }
.search:focus-within .search-icon { color: var(--accent); }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 14px;
}
.search input::placeholder { color: var(--dim-2); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  flex: none;
  font-size: 10.5px; color: var(--dim-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 5px;
  letter-spacing: 0.4px;
  transition: color 0.2s, border-color 0.2s;
}
.search:focus-within kbd { color: var(--accent); border-color: rgba(125, 211, 252, 0.35); }

@keyframes sheen {
}

/* 鐎佃壈鍩?*/
.topnav { display: flex; align-items: center; gap: 3px; flex: none; }.topnav a { position: relative; padding: 8px 13px; font-size: 13.5px; color: var(--dim); transition: color 0.18s, background 0.24s, transform 0.24s var(--ease); white-space: nowrap; }
.topnav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 3px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%);
  transition: width 0.32s var(--ease);
}.topnav a:hover { color: var(--text); }
.topnav a.active::after { width: 16px; }

/* 閻樿埖鈧?*/
.status {
  display: flex; align-items: center; gap: 7px;
  flex: none;
  font-size: 12px;
  color: var(--dim-2);
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, color 0.3s;
}
.status .dot {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}
.status .dot::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: rgba(251, 191, 36, 0.6);
  animation: ping 2.4s var(--ease-soft) infinite;
}
@keyframes ping {
  0% { transform: scale(0.7); opacity: 0.9; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}
.status.ok .dot { background: var(--good); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14); }
.status.ok .dot::after { color: rgba(52, 211, 153, 0.55); }
.status.ok { border-color: rgba(52, 211, 153, 0.18); }
.status.ok #statusText { color: var(--dim); }

/* ============================================================
   娑撹缍?   ============================================================ */
.app { max-width: 1480px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px) 64px; }

/* 閸戝搫婧€閸斻劎鏁鹃敍娆絊 閸?.in 鐟欙箑褰?*/
.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  min-height: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012)),
    linear-gradient(160deg, #0d1220, #070910);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 36px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(167, 139, 250, 0.28), transparent 58%),
    radial-gradient(90% 70% at 8% 96%, rgba(125, 211, 252, 0.2), transparent 62%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 22%;
  filter: blur(20px) saturate(130%);
  transform: scale(1.14);
  opacity: 0.6;
  animation: heroZoom 26s ease-in-out infinite alternate;
}
@keyframes heroZoom {
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.95) 0%, rgba(5, 6, 10, 0.74) 42%, rgba(5, 6, 10, 0.24) 100%),
    linear-gradient(0deg, rgba(5, 6, 10, 0.92), transparent 62%);
}
.hero-inner {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  padding: clamp(22px, 4vw, 46px);
}
.hero-poster {
  position: relative;
  width: 152px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: var(--panel);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.hero:hover .hero-poster { transform: translateY(-6px) rotate(-0.8deg); box-shadow: 0 38px 70px -24px rgba(0, 0, 0, 1), 0 0 0 1px rgba(125, 211, 252, 0.18); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { min-width: 0; max-width: 720px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.hero-title {
  margin: 0 0 11px;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.8px;
  font-weight: 780;
  background: linear-gradient(120deg, #ffffff 12%, #d7e6ff 52%, #b9c6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}
.hero-desc {
  margin: 0 0 22px;
  color: #a8b3c9;
  font-size: 14px;
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

/* 閺嶅洨顒?*/
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 10px;
  border-radius: 8px;
  font-size: 11.5px;
  letter-spacing: 0.2px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s;
}
.tag:hover { transform: translateY(-1px); border-color: var(--line-2); color: var(--text); }
.tag.q4k { color: var(--accent-3); border-color: rgba(240, 171, 252, 0.32); background: rgba(240, 171, 252, 0.1); }
.tag.q2k { color: var(--accent); border-color: rgba(125, 211, 252, 0.32); background: rgba(125, 211, 252, 0.1); }
.tag.q1080 { color: var(--good); border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.09); }
.tag.score { color: var(--warn); border-color: rgba(251, 191, 36, 0.28); background: rgba(251, 191, 36, 0.09); font-weight: 650; }.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 43px; padding: 0 21px; font-size: 14px; font-weight: 620; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.055); color: var(--text); overflow: hidden; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09); }
.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}.btn.primary { background-size: 220% 100%; animation: btnFlow 7s ease-in-out infinite alternate; }
@keyframes btnFlow {
}
.btn.primary::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  animation: btnSweep 5.5s var(--ease-soft) infinite;
}
@keyframes btnSweep {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}
.btn.ghost { background: transparent; }

/* ============================================================
   閸掑棗灏?/ chips
   ============================================================ */
.section { margin-bottom: 44px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-title {
  position: relative;
  margin: 0; font-size: 17.5px; font-weight: 680; letter-spacing: 0.2px;
  padding-left: 13px;
}
.section-title::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 3px; height: 15px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.6);
}
.section-sub { font-size: 12px; color: var(--dim-2); }.section-head .more { margin-left: auto; transition: color 0.24s, transform 0.24s var(--ease); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  position: relative;
  height: 35px; padding: 0 16px;
  display: inline-flex; align-items: center;
  border-radius: 999px;
  font-size: 13px;
  color: var(--dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
  transition: color 0.24s, border-color 0.24s, background 0.24s, transform 0.24s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.chip.active {
  color: #04101a;
  background: linear-gradient(120deg, #e8f4ff, #c9d8ff);
  border-color: transparent;
  font-weight: 650;
  box-shadow: 0 10px 26px -14px rgba(200, 220, 255, 0.9);
}

/* ============================================================
   閸楋紕澧?   ============================================================ */
.rail { position: relative; }.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(134px, 12.6vw, 176px); gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px 15px;
}

/* 鐠恒劍绨划楣冣偓澶涚窗閹稿宕遍悧鍥ㄦ殶闁插繒鐡戦崚鍡樻殻鐞涘矉绱濇稉宥囨殌鐏忛箖鍎寸粚铏规 */
.grid.spotlight {
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  gap: 16px;
}
.grid.spotlight .card-poster { aspect-ratio: 2 / 3; }
.grid.spotlight .card-name { font-size: 13.5px; }

.card {
  position: relative;
  display: block;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: transform 0.42s var(--ease), border-color 0.42s, box-shadow 0.42s var(--ease), background 0.42s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 1), 0 0 0 1px rgba(125, 211, 252, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

/* 閹稿洭鎷＄捄鐔兼閻ㄥ嫰鐝崗?*/
.card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.16), transparent 62%);
  transition: opacity 0.4s var(--ease-soft);
  mix-blend-mode: screen;
}
.card:hover::after { opacity: 1; }

.card-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #0a0d14; }.card-poster img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform 0.7s var(--ease), filter 0.5s var(--ease); filter: saturate(0.98) contrast(1.02); }
@keyframes imgIn { }
.card:hover .card-poster img { transform: scale(1.07); filter: saturate(1.08) contrast(1.04) brightness(1.03); }

.card-poster::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(5, 6, 10, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover .card-poster::after { opacity: 1; }

.card-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, #121722, #0a0d14);
}
.card-badges {
  position: absolute; left: 8px; top: 8px; right: 8px; z-index: 3;
  display: flex; gap: 5px; flex-wrap: wrap;
  pointer-events: none;
}
.badge {
  height: 21px; padding: 0 7px;
  display: inline-flex; align-items: center;
  border-radius: 6px;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.3px;
  color: #e2eaf6;
  background: rgba(6, 8, 12, 0.6);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s var(--ease);
}
.card:hover .badge { transform: translateY(-1px); }
.badge.q4k { color: var(--accent-3); border-color: rgba(240, 171, 252, 0.42); background: rgba(60, 20, 60, 0.55); }
.badge.q2k { color: var(--accent); border-color: rgba(125, 211, 252, 0.42); background: rgba(10, 40, 56, 0.55); }
.badge.q1080 { color: var(--good); border-color: rgba(52, 211, 153, 0.38); background: rgba(8, 46, 38, 0.55); }
.badge.src { color: #c3cddd; }

.card-meta {
  z-index: 3; position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 10px 9px;
  background: linear-gradient(to top, rgba(4, 5, 9, 0.94), rgba(4, 5, 9, 0.4) 55%, transparent);
}
.card-remarks { font-size: 10.5px; color: #b9c3d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name {
  padding: 9px 10px 11px;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.32;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s;
}
.card:hover .card-name { color: #fff; }
.card-name small { display: block; font-weight: 400; color: var(--dim-2); font-size: 11px; margin-top: 3px; }

/* 妤犮劍鐏?*/
.skeleton { pointer-events: none; }
.sk {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 20%, rgba(255, 255, 255, 0.075) 38%, rgba(255, 255, 255, 0.03) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 9px;
}
@keyframes shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.sk-card .p { aspect-ratio: 2/3; border-radius: 0; }
.sk-card .t { height: 12px; margin: 11px 10px 13px; width: 72%; }.back-link { margin-bottom: 20px; transition: color 0.24s, background 0.24s, border-color 0.24s, transform 0.3s var(--ease); }

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  gap: 30px;
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm), var(--glass-edge);
  margin-bottom: 32px;
  overflow: hidden;
}
.detail-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 100% -10%, rgba(167, 139, 250, 0.16), transparent 60%);
  pointer-events: none;
}
.detail-poster {
  position: relative;
  width: 100%; aspect-ratio: 2/3;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0a0d14;
  box-shadow: 0 26px 56px -26px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.6s var(--ease);
}
.detail-poster:hover { transform: translateY(-5px) scale(1.012); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-title {
  margin: 0 0 11px;
  font-size: clamp(22px, 2.6vw, 33px);
  font-weight: 750;
  letter-spacing: -0.4px;
}
.detail-sub { color: var(--dim); font-size: 13px; margin-bottom: 15px; }
.detail-desc { color: #a2adc2; font-size: 13.5px; line-height: 1.78; margin: 15px 0 22px; max-width: 800px; }

.line-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 17px; }.line-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 39px; padding: 0 15px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.1); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); font-size: 13px; color: var(--dim); overflow: hidden; }
/* 閹剙浠犻弮鑸垫箒娑撯偓闁挻鏋╅崥鎴濆帨閹殿偉绻冮敍灞藉幢閻?閹稿鎸崇紒鐔剁閻ㄥ嫭澧滈幇?*/
.line-tab::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 47%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}
.line-tab:hover::after { transform: translateX(120%); }.line-tab:hover { color: var(--text); border-color: rgba(125, 211, 252, 0.4); background: linear-gradient(180deg, rgba(125, 211, 252, 0.13), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 14px 30px -20px rgba(125, 211, 252, 0.9); }
.line-tab.dim { color: var(--dim-2); opacity: 0.86; }
.line-tab.active {
  color: #eaf7ff;
  border-color: rgba(125, 211, 252, 0.72);
  background: linear-gradient(120deg, rgba(125, 211, 252, 0.26), rgba(167, 139, 250, 0.17));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 36px -18px rgba(125, 211, 252, 1);
  opacity: 1;
}
.line-tab.active::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  flex: none;
  margin-right: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.line-tab.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: none; transition: none;
}

/* 婢跺洨鏁ょ痪鑳熅閿涙岸绮拋銈嗘暪鐠у嚖绱濋柆鍨帳 30 閺夆€茶厬鏉烆剛鐝幎濠囥€夐棃銏℃嫼閻?*/
.line-backup { margin: 0 0 17px; }
.line-backup-head {
  display: inline-flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 13px; margin-bottom: 10px;
  border-radius: 10px; cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  font: inherit; font-size: 12px; color: var(--dim);
  transition: color 0.24s, border-color 0.24s, background 0.24s;
}
.line-backup-head i { font-style: normal; font-size: 11px; color: var(--dim-2); }
.line-backup-head svg {
  width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.line-backup-head:hover { color: var(--text); border-color: rgba(125, 211, 252, 0.42); background: rgba(125, 211, 252, 0.08); }
.line-backup-head.open svg { transform: rotate(180deg); }
.backup-tabs { animation: backupIn 0.4s var(--ease) both; }
@keyframes backupIn {from { opacity: 0; } }
.line-tab .q {
  font-size: 10px; padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.line-tab .q.q4k {
  color: #1a1408; font-weight: 650;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.line-tab .q.q2k { color: #04141f; font-weight: 650; background: linear-gradient(135deg, #a5e8ff, #38bdf8); border-color: transparent; }
.line-tab .q.q1080 { color: #04150c; font-weight: 650; background: linear-gradient(135deg, #bbf7d0, #34d399); border-color: transparent; }

.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 9px;
  max-height: 344px;
  overflow-y: auto;
  padding: 2px 6px 2px 2px;
  scroll-behavior: smooth;
}.ep { height: 39px; padding: 0 9px; font-size: 12.5px; color: var(--dim); white-space: nowrap; text-overflow: ellipsis; }
.ep.active {
  color: #04101a;
  background: linear-gradient(120deg, var(--accent), #b9c9ff);
  border-color: transparent;
  font-weight: 680;
  box-shadow: 0 12px 26px -14px rgba(125, 211, 252, 0.9);
}

/* ============================================================
   閹绢厽鏂佹い?   ============================================================ */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 22px;
  align-items: start;
}
.player-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-wrap video { width: 100%; height: 100%; background: #000; display: block; }

.player-top {
  position: absolute; inset: 0 0 auto 0;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent);
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  z-index: 8;
}
.player-stage:hover .player-top, .player-top.pin { opacity: 1; transform: none; }
.player-top .ptitle { font-size: 13.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-top .psub { font-size: 11.5px; color: var(--dim); }

.player-error {
  position: absolute; inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(5, 6, 10, 0.9);
  backdrop-filter: blur(14px);
  z-index: 4;
}
.player-error.show { display: grid; animation: imgIn 0.3s var(--ease-soft) both; }
.player-error .pe-title { font-size: 15px; font-weight: 620; margin-bottom: 9px; }
.player-error .pe-desc { font-size: 12.5px; color: var(--dim); margin-bottom: 19px; max-width: 460px; line-height: 1.65; }

.player-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 17px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 9;
}
.select {
  height: 35px;
  padding: 0 32px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b93a7'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text);
  font-size: 12.5px;
  appearance: none;
  outline: 0;
  cursor: pointer;
  transition: border-color 0.24s, background 0.24s, box-shadow 0.24s;
}
.select:hover { border-color: var(--line-2); background-color: rgba(255, 255, 255, 0.09); }
.select:focus { border-color: rgba(125, 211, 252, 0.5); box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1); }
.bar-note { margin-left: auto; font-size: 11.5px; color: var(--dim-2); font-variant-numeric: tabular-nums; }

.side-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm), var(--glass-edge);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.side-head { padding: 15px 17px 11px; display: flex; align-items: center; gap: 8px; }
.side-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.side-head span { margin-left: auto; font-size: 11.5px; color: var(--dim-2); }
.side-body { max-height: min(60vh, 600px); overflow-y: auto; padding: 0 13px 13px; }
.ep-list { display: flex; flex-direction: column; gap: 4px; }.ep-row { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 9px; font-size: 12.5px; color: var(--dim); text-align: left; width: 100%; }.ep-row:hover { color: var(--text); }.ep-row.active { background: linear-gradient(100deg, rgba(125, 211, 252, 0.18), rgba(167, 139, 250, 0.1)); color: #d9f2ff; font-weight: 620; }
.ep-row.active::before {
  content: "";
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.8);
}
.ep-row .idx { width: 22px; flex: none; color: var(--dim-2); font-variant-numeric: tabular-nums; }
.ep-row.active .idx { color: inherit; }

.mini-info { display: flex; gap: 12px; padding: 13px; border-top: 1px solid var(--line); }
.mini-info img { width: 62px; aspect-ratio: 2/3; object-fit: cover; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.1); }
.mini-info .mi-name { font-size: 12.5px; font-weight: 620; margin-bottom: 4px; }
.mini-info .mi-desc { font-size: 11.5px; color: var(--dim-2); line-height: 1.55; }

/* ============================================================
   缁岀儤鈧?/ toast / footer
   ============================================================ */
.empty {
  display: grid; place-items: center; gap: 10px;
  padding: 90px 20px;
  text-align: center;
  color: var(--dim-2);
  animation: imgIn 0.5s var(--ease-soft) both;
}
.empty .big { font-size: 36px; opacity: 0.45; animation: spinSlow 14s linear infinite; }
@keyframes spinSlow { }
.empty h3 { margin: 0; font-size: 16px; color: var(--dim); font-weight: 560; }
.empty p { margin: 0; font-size: 13px; max-width: 420px; line-height: 1.7; }

.toast {
  position: fixed; left: 50%; bottom: 30px;
  transform: translate(-50%, 22px) scale(0.96);
  padding: 11px 19px;
  border-radius: 12px;
  font-size: 13px;
  color: #eaf2ff;
  background: rgba(16, 20, 30, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0; pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.4s var(--ease-spring);
  z-index: 200;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.foot {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 30px 20px 44px;
  font-size: 11.5px;
  color: var(--dim-2);
  border-top: 1px solid var(--line);
}
.foot a { transition: color 0.24s; }
.foot a:hover { color: var(--accent); }
.foot .sep { opacity: 0.4; }

/* ============================================================
   閸濆秴绨插?   ============================================================ */
@media (max-width: 900px) {
  .player-layout { grid-template-columns: minmax(0, 1fr); }
  .side-panel { position: static; }
  .side-body { max-height: 340px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .player-layout { grid-template-columns: minmax(0, 1fr) 264px; gap: 16px; }
  .side-panel { --side-w: 264px; }
}

@media (max-width: 860px) {
  .topbar { gap: 12px; height: 58px; padding: 0 14px; }
  .topnav { display: none; }
  .search { flex-basis: auto; }
  .search kbd { display: none; }
  .status { padding: 6px; }
  .status #statusText { display: none; }
  .hero { min-height: 350px; }
  .hero-poster { width: 106px; }
  .hero-desc { -webkit-line-clamp: 2; font-size: 13px; }
  .detail-hero { grid-template-columns: 118px minmax(0, 1fr); gap: 16px; }
  .rail-track { grid-auto-columns: 130px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 15px 11px; }
  .grid.spotlight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app { padding-top: 18px; }
  .detail-hero::before { display: none; }
}

/* 閸忚櫕甯€閸斻劍鏅ラ敍姘毀闁插秶閮寸紒鐔活啎缂?*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   V2 璺?妫ｆ牠銆夐弨褰掆偓?   妞よ埖鐖崢鑽ゆ閺?/ 鏉烆喗鎸?hero / 閸掑棜椴搁悳鍥潡閺?/ 濮掓粌宕?/ 閸掑棙顔岄幒褌娆?   ============================================================ */

/* ---------- 妞よ埖鐖敍姘箒閼规彃鐤勬惔鏇氳礋娑撲紮绱濆Ο锛勭ˇ閸欘亙缍旀潏鍛И ---------- */
.topbar {
  background: #05070c;
  background: linear-gradient(to bottom, rgba(5, 7, 12, 0.985) 0%, rgba(5, 7, 12, 0.9) 58%, rgba(6, 8, 14, 0.76) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.topbar.scrolled {
  background: linear-gradient(to bottom, rgba(4, 6, 10, 0.995), rgba(4, 6, 10, 0.94));
  box-shadow: 0 12px 34px -26px #000;
}
.search {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

/* ---------- 鏉烆喗鎸?hero ---------- */
.hero2 {
  position: relative;
  height: clamp(330px, 35vw, 436px);
  margin-bottom: 26px;
  border-radius: 22px;
  overflow: hidden;
  background: #070a11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 50px 90px -66px #000, inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.h2-stage { position: absolute; inset: 0; }
.h2-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease-soft), visibility 0.9s;
}
.h2-slide.active { opacity: 1; visibility: visible; }
.h2-bg {
  position: absolute;
  inset: -10% -8%;
  background-size: cover;
  background-position: center 26%;
  filter: blur(30px) saturate(150%) brightness(0.58);
  transform: scale(1.06);
  transition: transform 9s linear;
}
.h2-slide.active .h2-bg { transform: scale(1); }
.h2-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 6, 11, 0.97) 6%, rgba(4, 6, 11, 0.86) 38%, rgba(4, 6, 11, 0.34) 76%, rgba(4, 6, 11, 0.6)),
    linear-gradient(to top, rgba(4, 6, 11, 0.9), transparent 46%);
}
.h2-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  width: 100%;
  padding: clamp(20px, 2.6vw, 40px);
}
.h2-poster {
  flex: none;
  width: clamp(116px, 11vw, 152px);
  aspect-ratio: 2 / 3;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 30px 56px -22px #000, 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(900px) rotateY(0deg);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.h2-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h2-slide.active .h2-poster:hover {
  transform: perspective(900px) rotateY(-7deg) translateY(-6px);
  box-shadow: 0 40px 70px -22px #000, 0 0 0 1px rgba(125, 211, 252, 0.3);
}
.h2-body { min-width: 0; flex: 1; }
.h2-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.h2-score {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #ffd987;
  background: rgba(255, 197, 92, 0.12);
  border: 1px solid rgba(255, 197, 92, 0.34);
}
.h2-title {
  margin: 0 0 12px;
  font-size: clamp(25px, 3.1vw, 40px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.14;
  background: linear-gradient(100deg, #ffffff, #d9e6ff 46%, #b9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.h2-desc {
  margin: 0 0 20px;
  max-width: 660px;
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(212, 222, 240, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.h2-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.h2-dots {
  position: absolute;
  z-index: 4;
  left: clamp(20px, 2.6vw, 40px);
  bottom: 18px;
  display: flex;
  gap: 7px;
}
.h2-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.26);
  transition: width 0.4s var(--ease), background 0.3s;
}
.h2-dot:hover { background: rgba(255, 255, 255, 0.45); }
.h2-dot.active {
  width: 26px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.7);
}

/* ---------- 閸楋紕澧栫憴鎺撶垼閿涙艾鍨庢潏銊у芳 / 鐠囧嫬鍨?/ 濠ф劖鏆?---------- */
.qb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.55px;
  font-variant-numeric: tabular-nums;
  color: #cbd7e8;
  background: rgba(8, 13, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease);
}
.card:hover .qb { transform: translateY(-1px); }
.qb.q4k {
  color: #ffe6a3;
  border-color: rgba(255, 201, 94, 0.6);
  background: linear-gradient(135deg, rgba(126, 74, 8, 0.88), rgba(72, 28, 62, 0.84));
  box-shadow: 0 0 18px -5px rgba(255, 190, 80, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.qb.q2k {
  color: #a8ddff;
  border-color: rgba(125, 211, 252, 0.55);
  background: linear-gradient(135deg, rgba(8, 46, 68, 0.88), rgba(28, 20, 76, 0.84));
  box-shadow: 0 0 18px -5px rgba(125, 211, 252, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.qb.q1080 {
  color: #8ff0cf;
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(135deg, rgba(4, 48, 38, 0.88), rgba(6, 32, 48, 0.84));
  box-shadow: 0 0 18px -5px rgba(52, 211, 153, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.card-score {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #c9d3e2;
  background: rgba(8, 11, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card-score::before { content: "★"; font-size: 8.5px; opacity: 0.75; }
.card-score.db {
  color: #ffe1a0;
  border-color: rgba(255, 206, 110, 0.45);
  background: linear-gradient(135deg, rgba(48, 32, 4, 0.8), rgba(28, 16, 30, 0.76));
  box-shadow: 0 0 16px -6px rgba(255, 196, 80, 0.7);
}

.card-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  white-space: nowrap;
  color: #eaf2ff;
  background: rgba(8, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.45s var(--ease-spring);
}
.card:hover .card-hint { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- 閸掑棙顔岄幒褌娆?---------- */
.seg {
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex: none;
}
.seg-btn {
  padding: 5px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.22s, background 0.24s, transform 0.24s var(--ease);
}
.seg-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.seg-btn.active {
  color: #04121b;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #b9a6ff);
  box-shadow: 0 8px 20px -12px rgba(125, 211, 252, 0.95);
}

/* ---------- 閸ュ搫鐣鹃崚妤冪秹閺?---------- */
.grid.cols6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid.cols6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid.cols6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 鐠炲棛鎽氬婊冨礋 ---------- */
.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px clamp(18px, 2.4vw, 34px);
}
@media (max-width: 980px) { .rank-grid { grid-template-columns: 1fr; } }
.rank-col { display: flex; flex-direction: column; }
.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 44px;
  grid-template-areas:
    "no name year score"
    "no name bar  bar";
  align-items: center;
  column-gap: 10px;
  row-gap: 7px;
  padding: 10px 10px 11px;
  border-radius: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  transition: background 0.28s, transform 0.28s var(--ease);
}
.rank-row:hover { background: rgba(255, 255, 255, 0.045); transform: translateX(3px); }
.rank-no {
  grid-area: no;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--dim-2);
  text-align: center;
}
.rank-no.top {
  color: transparent;
  background: linear-gradient(160deg, #ffe6a3, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
}
.rank-name {
  grid-area: name;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-year { grid-area: year; font-size: 11.5px; color: var(--dim-2); font-variant-numeric: tabular-nums; }
.rank-score {
  grid-area: score;
  font-size: 13px;
  font-weight: 800;
  color: #ffd987;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rank-bar {
  grid-area: bar;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.rank-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.85), rgba(167, 139, 250, 0.85));
  transition: width 0.8s var(--ease);
}

/* ---------- 閸忔湹缍戦柌鍥肠濠?/ 妞や絻鍓肩拠瀛樻 ---------- */
.more-src {
  display: flex;
  margin: 6px auto 30px;
  padding: 9px 22px;
  font-size: 12.5px;
}
.src-rows.hidden { display: none; }
.chip.ghost {
  color: var(--accent);
  border-style: dashed;
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(125, 211, 252, 0.05);
}
.home-foot {
  margin: 26px 0 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--dim-2);
}
.inline-err {
  padding: 26px 0;
  font-size: 12.5px;
  color: var(--dim-2);
}
.hero2.skeleton .h2-inner { position: relative; z-index: 2; }

@media (max-width: 860px) {
  .hero2 { height: clamp(300px, 96vw, 400px); border-radius: 18px; }
  .h2-inner { gap: 14px; padding: 18px; align-items: flex-end; }
  .h2-poster { width: 96px; border-radius: 12px; }
  .h2-desc { -webkit-line-clamp: 3; font-size: 12.5px; margin-bottom: 15px; }
  .h2-dots { left: 18px; bottom: 14px; }
  .seg { margin-left: 0; }
  .section-head { flex-wrap: wrap; row-gap: 10px; }
  .rank-row { grid-template-columns: 28px minmax(0, 1fr) 44px; grid-template-areas: "no name score" "no name bar"; }
  .rank-year { display: none; }
}
/* ============ 閺堫剙鎳嗘潻钘夊⒔ + 閸掑棛琚柅鐔活潔 ============ */
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.cal-day {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
  border-radius: 12px;
  padding: 9px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: var(--txt-2, #9aa4b2);
  transition: border-color 0.22s, background 0.22s, transform 0.22s, color 0.22s;
  min-height: 62px;
}
.cal-day b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--txt-1, #e6ebf2);
}
.cal-day i {
  font-style: normal;
  font-size: 10.5px;
  opacity: 0.62;
}
.cal-day em {
  font-style: normal;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #7dd3fc;
  opacity: 0.85;
}
.cal-day:hover {
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(125, 211, 252, 0.08);
  transform: translateY(-2px);
}
.cal-day.active {
  color: #eaf7ff;
  border-color: rgba(125, 211, 252, 0.72);
  background: linear-gradient(150deg, rgba(125, 211, 252, 0.26), rgba(167, 139, 250, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 30px -20px rgba(125, 211, 252, 0.95);
}
.cal-day.active em {
  color: #eaf7ff;
  opacity: 1;
}
.cal-day.today b::after {
  content: '今';
  margin-left: 3px;
  font-size: 9px;
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(125, 211, 252, 0.22);
  color: #bfe9ff;
  vertical-align: 1px;
}
.cal-day.sk {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cat-card {
  display: block;
  padding: 14px 15px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(18px) saturate(140%);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s, box-shadow 0.28s;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--cat, #7dd3fc);
  opacity: 0.75;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cat, #7dd3fc) 45%, transparent);
  box-shadow: 0 22px 44px -28px color-mix(in srgb, var(--cat, #7dd3fc) 90%, transparent);
}
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}
.cat-head span {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--txt-1, #e6ebf2);
}
.cat-head b {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cat, #7dd3fc);
  line-height: 1;
}
.cat-head b i {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  margin-left: 2px;
  opacity: 0.7;
}
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cat-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--txt-2, #9aa4b2);
  min-width: 0;
}
.cat-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(230, 235, 242, 0.86);
}
.cat-list li em {
  font-style: normal;
  font-size: 10px;
  opacity: 0.55;
  white-space: nowrap;
  flex: none;
}

@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .cal-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cal-day {
    min-height: 56px;
    padding: 7px 4px 6px;
  }
}
@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ 閻滆崵鎷戞稉瀣閿涘牊娴涙禒锝呭斧閻?select閿?============ */
.gsel { position: relative; display: inline-flex; min-width: 0; }
.gsel-btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 13px; max-width: 320px;
  border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 22px -16px #000;
  transition: border-color 0.24s, background 0.24s, box-shadow 0.24s, transform 0.24s;
}
.gsel-btn:hover {
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px -16px rgba(125, 211, 252, 0.7);
}
.gsel.open .gsel-btn {
  border-color: rgba(125, 211, 252, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 3px rgba(125, 211, 252, 0.12);
}
.gsel-k {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim-2); padding-right: 8px; border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.gsel-cur { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.gsel-caret {
  width: 9px; height: 6px; flex: none; opacity: 0.65;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s;
}
.gsel.open .gsel-caret { transform: rotate(180deg); opacity: 1; }

.gsel-pop {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 70;
  min-width: 268px; max-width: min(360px, 84vw);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px) scale(0.965);
  transform-origin: bottom left;
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
}
.gsel.open .gsel-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.gsel-pop-in {
  max-height: 322px; overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.94), rgba(9, 12, 19, 0.96));
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  box-shadow: 0 28px 70px -22px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.gsel-pop-in::-webkit-scrollbar { width: 8px; }
.gsel-pop-in::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 4px; }
.gsel-div {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px 6px; font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--dim-2); text-transform: uppercase;
}
.gsel-div::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }.gsel-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 11px; cursor: pointer; text-align: left; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; }
.gsel.open .gsel-item { animation: giIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 16ms); }
@keyframes giIn { from { opacity: 0; transform: translateY(6px); }to { opacity: 1; } }
.gsel-item.is-on::before {
  content: ''; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 62%; border-radius: 2px;
  background: linear-gradient(180deg, #7dd3fc, #a78bfa);
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.9);
}
.gi-dot {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: all 0.2s;
}
.gsel-item.is-on .gi-dot { border-color: #7dd3fc; background: #7dd3fc; box-shadow: 0 0 9px rgba(125, 211, 252, 0.85); }
.gi-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.gi-main b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-main i { font-style: normal; font-size: 10.5px; color: var(--dim-2); }
.gi-tag {
  flex: none; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.03em; color: var(--dim); background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.gi-tag.q4k {
  color: #1a1408; background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-color: transparent; box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}
.gi-tag.q2k { color: #04141f; background: linear-gradient(135deg, #a5e8ff, #38bdf8); border-color: transparent; }
.gi-tag.q1080 { color: #04150c; background: linear-gradient(135deg, #bbf7d0, #34d399); border-color: transparent; }

@media (max-width: 720px) {
  .gsel, .gsel-btn { max-width: 100%; }
  .gsel-cur { max-width: 128px; }
  .gsel-pop { min-width: 240px; }
}

/* 娑撳﹥鏌熺粚娲？娑撳秷鍐婚弮鑸垫篂娑撳鐫嶅鈧?*/
.gsel.drop-down .gsel-pop {
  bottom: auto; top: calc(100% + 10px);
  transform-origin: top left;
  transform: translateY(-10px) scale(0.965);
}
.gsel.drop-down.open .gsel-pop { transform: none; }

/* ================= 播放页：上次看到哪儿 ================= */
/* 鐏炲倻楠囬崚缁樺壈閸樺婀幒褍鍩楅弶鈥茬娑撳绱伴崝鐘烘祰閺冭泛褰ч張锕佸劤閻㈠娼伴敍宀€鍤庣捄?閻㈡槒宸濇稉瀣娑撳氦绻樻惔锔芥蒋婵绮撻崣顖滃仯 */
.p-loader {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(9, 12, 20, 0.55), rgba(4, 6, 11, 0.86));
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  pointer-events: none;
}
.p-loader.show { opacity: 1; visibility: visible; }
.p-loader.hide { opacity: 0; visibility: hidden; }

.pl-wrap { display: grid; justify-items: center; gap: 18px; }
.pl-ring {
  position: relative;
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 62%);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 18px 50px -22px rgba(125, 211, 252, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
/* 娑撱倖娼€电娴嗛惃鍕暉瑜般垹濮痪鍖＄礉閻?conic-gradient + mask 閹剁姴鍤紒鍡楀К */
.pl-orbit {
  position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(125, 211, 252, 0) 40deg, #7dd3fc 120deg, #a78bfa 190deg, transparent 240deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: plSpin 1.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.75));
}
.pl-orbit.o2 {
  inset: 7px; opacity: 0.62;
  animation: plSpin 2.6s linear infinite reverse;
  background: conic-gradient(from 180deg, transparent 0deg, rgba(167, 139, 250, 0) 50deg, #c4b5fd 150deg, transparent 210deg);
  filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.6));
}
@keyframes plSpin { }
.pl-core {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff, #7dd3fc 45%, #6366f1 100%);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.9), 0 0 40px rgba(99, 102, 241, 0.45);
  animation: plPulse 1.9s ease-in-out infinite;
}
@keyframes plPulse { 0%, 100% { transform: scale(0.82); opacity: 0.85; }50% { opacity: 1; } }

.pl-text {
  font-size: 12.5px; letter-spacing: 0.16em; color: #b8c6dd;
  background: linear-gradient(90deg, #7e8ba3 12%, #eaf6ff 40%, #7e8ba3 68%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: plShimmer 2.6s ease-in-out infinite;
}
@keyframes plShimmer { }
@keyframes plSlide { }

@media (prefers-reduced-motion: reduce) {
  .pl-orbit, .pl-orbit.o2, .pl-core, .pl-bar i, .pl-text { animation: none; }
}

/* ================= 妫ｆ牠銆夐妴灞炬付鏉╂垶鎸遍弨淇扁偓?================= */
.hist-grid {
  display: grid;
  grid-template-columns: repeat(var(--hcols, 4), minmax(0, 1fr));
  gap: 14px;
}.hist-card { display: flex; align-items: center; padding: 8px 9px 8px 8px; border-radius: 14px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014) 62%); border: 1px solid rgba(255, 255, 255, 0.065); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); animation: histIn 0.6s var(--ease) both; animation-delay: var(--d, 0ms); overflow: hidden; }
@keyframes histIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }to { opacity: 1; }
}
.hist-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(125, 211, 252, 0.12);
}
.hc-poster {
  position: relative;
  width: 54px;
  flex: none;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1119;
}
.hc-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-poster img.err { opacity: 0; }
.hc-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(4, 6, 12, 0.42);
  opacity: 0;
  transition: opacity 0.26s;
}
.hist-card:hover .hc-play { opacity: 1; }
.hc-prog {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}
.hc-prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.85);
  border-radius: 0 2px 2px 0;
}
.hc-body { flex: 1; min-width: 0; padding-right: 20px; }.hc-meta { margin-top: 3px; }
.hc-time { margin-top: 2px; font-size: 10.5px; color: rgba(139, 155, 180, 0.72); }
#histClear {
  background: none;
  border: none;
  color: var(--dim-2);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
#histClear:hover { color: #ffd0d0; background: rgba(255, 120, 120, 0.1); }

/* ================= 播放页：上次看到哪儿 ================= */
.resume-panel {
  padding: 12px 13px 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.06), transparent);
  animation: backupIn 0.5s var(--ease) both;
}
.rp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 620;
  color: var(--text);
  margin-bottom: 8px;
}
.rp-head i {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  color: var(--dim-2);
  font-weight: 400;
}
.rp-list { display: flex; flex-direction: column; gap: 4px; }
.rp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 52px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 11.8px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.028);
  transition: background 0.2s, color 0.2s, transform 0.22s var(--ease);
}
.rp-row:hover {
  background: rgba(125, 211, 252, 0.12);
  color: #d9f2ff;
  transform: translateX(2px);
}
.rp-ep { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.rp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.rp-t {
  text-align: right;
  font-size: 10.5px;
  color: var(--dim-2);
  font-variant-numeric: tabular-nums;
}

/* 闁娉︾悰灞藉敶鏉╂稑瀹?+ 閸氬秶袨閻胶鏆?*/
.ep-row .ep-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ep-row .ep-prog {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  max-width: 100%;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.9), rgba(167, 139, 250, 0.6));
  border-radius: 0 2px 0 0;
  opacity: 0.85;
}
.ep-row.active .ep-prog { background: linear-gradient(90deg, #7dd3fc, #a78bfa); box-shadow: 0 0 8px rgba(125, 211, 252, 0.8); }

@media (max-width: 1180px) {
  .hist-grid { --hcols: 4; }
}
@media (max-width: 860px) {
  .hist-grid { --hcols: 2; gap: 10px; }
  .hc-poster { width: 48px; }
  .hc-name { font-size: 12px; }
}
/* 閸旂姾娴囬弶鈥愁杻瀵尨绱伴弴鏉戭啍閺囩繝瀵掗敍灞惧閸忓鐢径鏍у絺閸?*/
.pl-bar {
  width: 118px; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.pl-bar i {
  display: block; width: 42%; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #7dd3fc, #c4b5fd, transparent);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.9);
  animation: plSlide 1.5s ease-in-out infinite;
}

/* ============ 閹绢厽鏂侀崳銊﹀閸旀寧褰佺粈鍝勭湴 ============ */
.video-wrap video { touch-action: pan-y; }
.gest-tip {
  position: absolute; left: 50%; top: 14%;
  transform: translate(-50%, -8px) scale(0.94);
  display: grid; justify-items: center; gap: 3px;
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.82), rgba(7, 10, 17, 0.88));
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 60px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease), visibility 0.22s;
  z-index: 7;
}
.gest-tip.show { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.gest-tip b {
  font-size: 19px; font-weight: 680; color: #eaf7ff;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.55);
}
.gest-tip i { font-size: 11px; font-style: normal; color: #8fa0bb; letter-spacing: 0.06em; }

/* 瀹炴祴甯﹀鍋忎綆鐨勭嚎璺細闄嶅埌澶囩敤鍖哄苟寮卞寲鏄剧ず */
.line-tab.is-slow {
  opacity: 0.72;
  border-color: rgba(148, 163, 184, 0.28);
}
.line-tab.is-slow .q {
  color: #f3c98b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}
.line-tab.is-slow:hover {
  opacity: 1;
}

/* ============================================================
   V4：MiSans 字重 / 玻璃交互控件 / 板块切换按钮 / 流光骨架
   ============================================================ */

/* 字重映射：MiSans 只加载 400/500/600，700 用 600 顶替，避免浏览器合成假粗体发糊 */
body { font-weight: 400; letter-spacing: 0.005em; }
b, strong, .section-title, .h2-title, .detail-title, .hero-title, .rank-name { font-weight: 600; letter-spacing: 0.012em; }
h1, h2, h3 { font-weight: 600; }

/* ---------- 通用玻璃按钮：胶囊 + 内高光 + 悬停浮起 ---------- */
.btn,
.chip,
.seg-btn,
.more,
.topnav a,
.back-link,
.more-src,
.line-tab,
.ep-row,
.gsel-btn {
  position: relative;
  isolation: isolate;
  transition:
    transform 0.32s var(--ease),
    border-color 0.32s var(--ease),
    background 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    color 0.24s var(--ease);
}

.btn,
.chip,
.seg-btn,
.more {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px -18px rgba(0, 0, 0, 0.9);
}

.btn:hover,
.chip:hover,
.seg-btn:hover,
.more:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.4);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.16), rgba(167, 139, 250, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 32px -20px rgba(125, 211, 252, 0.75);
  color: #eaf7ff;
}
.btn:active,
.chip:active,
.seg-btn:active,
.more:active { transform: translateY(0) scale(0.975); }

/* 扫光：只在 hover 时跑一次，不占常态开销 */
.btn::after,
.chip::after,
.seg-btn::after,
.more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
  transform: translateX(-130%);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
.btn:hover::after,
.chip:hover::after,
.seg-btn:hover::after,
.more:hover::after {
  animation: sheenPass 0.72s var(--ease) forwards;
  opacity: 1;
}
@keyframes sheenPass {
  to { transform: translateX(130%); }
}.btn.primary { background: linear-gradient(118deg, #6ea8fe, #a78bfa 52%, #7dd3fc); border-color: rgba(255, 255, 255, 0.34); color: #08101c; font-weight: 600; }
.btn.primary:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.06);
  color: #05101d;
}

/* ---------- 顶栏导航：玻璃胶囊、选中态带渐变光边 ---------- */
.topnav {
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.075);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.topnav a {
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}
.topnav a::after { display: none; }
.topnav a:hover {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.14), rgba(167, 139, 250, 0.07));
  border-color: rgba(125, 211, 252, 0.26);
  transform: translateY(-1px);
}
.topnav a.active {
  background: linear-gradient(140deg, rgba(125, 211, 252, 0.24), rgba(167, 139, 250, 0.16));
  border-color: rgba(125, 211, 252, 0.46);
  color: #eaf7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px -16px rgba(125, 211, 252, 0.95);
}

/* ---------- 返回上一级 ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 28px -20px rgba(0, 0, 0, 0.95);
  font-size: 13px;
  color: var(--dim);
}
.back-link svg { transition: transform 0.34s var(--ease-spring); }
.back-link:hover {
  transform: translateY(-2px);
  color: #eaf7ff;
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.17), rgba(167, 139, 250, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 34px -20px rgba(125, 211, 252, 0.85);
}
.back-link:hover svg { transform: translateX(-3px); }
.back-link:active { transform: translateY(0) scale(0.97); }

/* ---------- 集数按钮：玻璃方块 + 进度环 ---------- */
.ep {
  position: relative;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease), color 0.2s;
}
.ep::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.22) 50%, transparent 64%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}
.ep:hover {
  transform: translateY(-2px) scale(1.02);
  color: #eaf7ff;
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.16), rgba(167, 139, 250, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 28px -18px rgba(125, 211, 252, 0.9);
}
.ep:hover::after { animation: sheenPass 0.7s var(--ease) forwards; opacity: 1; }
.ep.active,
.ep.is-on {
  color: #eaf7ff;
  border-color: rgba(125, 211, 252, 0.62);
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.28), rgba(167, 139, 250, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 30px -18px rgba(125, 211, 252, 1);
}
.ep.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 8px #7dd3fc;
  animation: dotPulse 2.2s ease-in-out infinite;
}

/* ---------- 板块右上角左右切换按钮（替代横向滚动条） ---------- */
.rail-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.rail-track::-webkit-scrollbar { height: 0; display: none; }

.row-nav {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  flex: none;
}
.row-nav button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--dim);
  transition: transform 0.28s var(--ease), color 0.24s, border-color 0.28s, background 0.28s, box-shadow 0.28s, opacity 0.28s;
}
.row-nav button:hover:not(:disabled) {
  transform: translateY(-2px);
  color: #eaf7ff;
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.18), rgba(167, 139, 250, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 26px -18px rgba(125, 211, 252, 0.9);
}
.row-nav button:active:not(:disabled) { transform: scale(0.94); }
.row-nav button:disabled { opacity: 0.28; cursor: default; }

/* 板块「展开更多」 */
.sec-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.28s var(--ease), color 0.24s, border-color 0.28s, background 0.28s, box-shadow 0.28s;
}
.sec-more svg { transition: transform 0.32s var(--ease-spring); }
.sec-more:hover {
  transform: translateY(-2px);
  color: #eaf7ff;
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.17), rgba(167, 139, 250, 0.08));
  box-shadow: 0 14px 28px -18px rgba(125, 211, 252, 0.9);
}
.sec-more.open svg { transform: rotate(180deg); }

/* ---------- 收藏卡片：删除按钮 / 卡片进出场 ---------- */
.hist-card { position: relative; transition: transform 0.34s var(--ease), opacity 0.3s var(--ease); }
.hist-card.out { opacity: 0; transform: translateY(6px) scale(0.94); }
.mem-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.mem-link:hover { color: inherit; }.hc-del { position: absolute; top: 7px; right: 7px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #dbe6f5; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(9, 12, 19, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity 0.24s var(--ease), transform 0.28s var(--ease-spring), background 0.24s, border-color 0.24s; z-index: 4; }
.hist-card:hover .hc-del { opacity: 1; transform: scale(1); }
.hc-del:hover { background: rgba(248, 113, 113, 0.9); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
@media (hover: none) { .hc-del { opacity: 1; transform: scale(1); } }

/* ---------- 播放页收藏按钮 ---------- */
.fav-btn { gap: 6px; }
.fav-ico { transition: transform 0.34s var(--ease-spring), color 0.3s; color: rgba(226, 232, 240, 0.6); }
.fav-btn:hover .fav-ico { transform: scale(1.16); color: #fda4af; }.fav-btn.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px -18px rgba(251, 113, 133, 0.95); }
.fav-btn.on .fav-ico { color: #fb7185; filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.9)); }
.fav-btn.pop { animation: favPop 0.46s var(--ease-spring); }
@keyframes favPop {
  0% { transform: scale(1); }
  42% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* ---------- 流光渐变玻璃骨架屏 ---------- */
.sk,
.sk-card .sk,
.hero2.skeleton .h2-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sk::before,
.sk-card .sk::before,
.hero2.skeleton .h2-inner::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(125, 211, 252, 0.16) 44%,
    rgba(196, 181, 253, 0.22) 50%,
    rgba(125, 211, 252, 0.14) 56%,
    transparent 70%
  );
  animation: flowShimmer 1.85s linear infinite;
}
@keyframes flowShimmer {
  from { transform: translateX(-60%) rotate(2deg); }
  to { transform: translateX(60%) rotate(2deg); }
}
.sk-card {
  border-radius: 15px;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.sk-card .sk.p { aspect-ratio: 2 / 3; border-radius: 15px 15px 0 0; border: 0; }
.sk-card .sk.t { height: 13px; margin: 9px 11px 12px; border-radius: 6px; border: 0; }

/* 图片加载完的柔光淡入 + 卡片入场 */
.card-poster img { animation: imgIn 0.5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .sk::before,
  .sk-card .sk::before,
  .hero2.skeleton .h2-inner::before { animation: none; }
  .btn::after, .chip::after, .seg-btn::after, .more::after, .ep::after { display: none; }
}

/* 小屏：导航与板块按钮收紧 */
@media (max-width: 860px) {
  .row-nav button { width: 27px; height: 27px; border-radius: 9px; }
  .sec-more { height: 27px; padding: 0 10px; font-size: 12px; }
  .topnav { padding: 3px; }
  .back-link { padding: 7px 13px 7px 10px; font-size: 12.5px; }
}

/* section-head 里的展开按钮 / 左右切换按钮：靠右并对齐中线 */
.section-head .sec-more,
.section-head .row-nav { margin-left: auto; align-self: center; }
.section-head .more + .sec-more { margin-left: 4px; }
.section-head .seg + .sec-more,
.section-head .seg + .row-nav { margin-left: 10px; }
.qb[hidden] { display: none; }
.qb.qauto { color: rgba(226, 232, 240, 0.75); border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); }

/* 手机端：本周追剧改成可横向滑动，避免 7 列被压扁 */
@media (max-width: 640px) {
  .cal-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }
  .cal-days::-webkit-scrollbar { height: 0; }
  .cal-day {
    flex: 0 0 76px;
    scroll-snap-align: start;
  }
  .cal-day b { font-size: 12px; }
  .cal-day em { font-size: 10.5px; }
  .section-title { font-size: 17px; }
  .section-head { gap: 8px; }
  .hero2 { height: clamp(300px, 62vw, 380px); border-radius: 18px; }
  .h2-title { font-size: 24px; }
  .hist-grid { --hcols: 2; }
}

/* ==================== 线路体检（手动触发） ==================== */
.check-lines {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 10px;
  font-size: 12px;
  letter-spacing: .01em;
  flex: none;
}
.check-lines svg { width: 14px; height: 14px; opacity: .9; flex: none; }
.check-lines.loading { pointer-events: none; opacity: .82; }
.check-lines.loading svg { animation: probeSpin .9s linear infinite; }

@keyframes probeSpin { to { transform: rotate(360deg); } }

/* 检测中：线路右侧转圈 */
.line-tab.probing { padding-right: 30px; position: relative; }
.line-tab.probing::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  transform: none;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(125, 211, 252, 0) 0 32%, #7dd3fc 96%, #c4b5fd 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 1.6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 1.6px));
  opacity: 1;
  animation: probeSpin .85s linear infinite;
}

/* 实测可播：绿色高亮 */
.line-tab.ok {
  color: #d8f7e6;
  border-color: rgba(52, 211, 153, .55);
  background: linear-gradient(180deg, rgba(52, 211, 153, .16), rgba(52, 211, 153, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 28px -20px rgba(52, 211, 153, .95);
}
.line-tab.ok .q { border-color: rgba(52, 211, 153, .38); }

/* 能播但慢：琥珀 */
.line-tab.slow {
  color: #fdeacb;
  border-color: rgba(245, 158, 11, .5);
  background: linear-gradient(180deg, rgba(245, 158, 11, .14), rgba(245, 158, 11, .04));
}
.line-tab.slow .q { border-color: rgba(245, 158, 11, .4); }.line-tab.dead { filter: grayscale(.8) brightness(.9); }
.line-tab.dead:hover {
  opacity: .72;
  filter: grayscale(.35) brightness(1);
  border-color: rgba(255, 255, 255, .16);
}
.line-tab.dead .q { opacity: .75; }

/* 选中态压过体检配色，避免看不出当前是哪条 */
.line-tab.active.ok,
.line-tab.active.slow,
.line-tab.active.dead {
  border-color: rgba(125, 211, 252, .72);
  outline: 1px solid rgba(125, 211, 252, .5);
  outline-offset: -1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 32px -18px rgba(125, 211, 252, .95);
}
.line-tab.active.dead { opacity: .62; filter: grayscale(.5); }

@media (max-width: 640px) {
  .check-lines { padding: 0 10px; }
  .check-lines span { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   V5：星原夜空背景 / 人气堆叠滑轨 / 半屏抽屉 / 榜单筛选 / 检测态
   ══════════════════════════════════════════════════════════════ */

/* ── 1. 背景：深空蓝紫渐变 + 缓慢流动的星云，不再用纯黑 ── */
:root {
  --bg: #070a14;
  --bg-2: #0a0f1d;
  --nebula-1: rgba(96, 165, 250, 0.34);
  --nebula-2: rgba(167, 139, 250, 0.3);
  --nebula-3: rgba(45, 212, 191, 0.18);
}

html, body {
  background-color: #070a14;
  background-image:
    radial-gradient(1400px 900px at 8% -12%, rgba(40, 64, 128, 0.55), transparent 62%),
    radial-gradient(1100px 820px at 96% -6%, rgba(76, 44, 128, 0.5), transparent 60%),
    radial-gradient(1300px 900px at 50% 112%, rgba(14, 66, 102, 0.46), transparent 66%),
    linear-gradient(180deg, #080c19 0%, #060a14 46%, #05080f 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.bg-aurora::after {
  content: "";
  position: absolute;
  inset: -32%;
  background: conic-gradient(
    from 0deg,
    transparent 0 10%,
    rgba(125, 211, 252, 0.1) 20%,
    transparent 32%,
    rgba(167, 139, 250, 0.1) 50%,
    transparent 62%,
    rgba(56, 189, 248, 0.075) 80%,
    transparent 100%
  );
  filter: blur(52px);
  animation: skyFlow 52s linear infinite;
  will-change: transform;
}
@keyframes skyFlow {
}

.blob {
  filter: blur(120px);
  opacity: 0.5;
}
.b1 { background: radial-gradient(circle, var(--nebula-1), transparent 66%); }
.b2 { background: radial-gradient(circle, var(--nebula-2), transparent 66%); }
.b3 { background: radial-gradient(circle, var(--nebula-3), transparent 66%); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5vw, 3.4vh, 0) scale(1.16); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-aurora::after { animation: none; }
}.hcard { scroll-snap-align: center; filter: saturate(calc(0.58 + var(--k) * 0.42)) brightness(calc(0.72 + var(--k) * 0.32)); }
.hcard.cur { filter: none; }

.hcard-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 20px 44px -24px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.hcard.cur .hcard-poster {
  box-shadow:
    0 34px 74px -32px rgba(125, 211, 252, 0.9),
    0 0 0 1px rgba(125, 211, 252, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.hcard-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.hcard:hover .hcard-poster img { transform: scale(1.05); }

.hcard-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4, 7, 14, 0.88) 100%);
  pointer-events: none;
}

.hcard-rank {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d6e9ff;
  background: rgba(6, 10, 20, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hcard.cur .hcard-rank {
  color: #0a1424;
  background: linear-gradient(140deg, #d9ecff, #9ec9ff);
  box-shadow: 0 6px 18px -8px rgba(158, 201, 255, 0.9);
}

.hcard-heat {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #cfe6ff;
  background: rgba(8, 13, 24, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hcard-foot { padding: 10px 3px 0; }
.hcard-foot b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hcard-foot i {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-style: normal;
  color: var(--dim-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 3. 半屏抽屉（板块「展开更多」） ── */
body.sheet-lock { overflow: hidden; }

.sheet { position: fixed; inset: 0; z-index: 95; display: none; }
.sheet.on { display: block; }

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.5);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.34s var(--ease-soft);
}
.sheet.show .sheet-mask { opacity: 1; }

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(72vh, 700px);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(21, 27, 42, 0.88), rgba(8, 11, 20, 0.95));
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 -34px 96px -30px rgba(0, 0, 0, 0.96),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(102%);
  transition: transform 0.44s var(--ease);
  will-change: transform;
}
.sheet.show .sheet-panel { transform: translateY(0); }

.sheet-grip {
  width: 46px;
  height: 4px;
  flex: none;
  margin: 10px auto 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 12px;
  flex: none;
}
.sheet-titles { flex: 1; min-width: 0; }
.sheet-titles h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sheet-titles span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--dim-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet-x {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.24s var(--ease);
}
.sheet-x:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 22px 30px;
}
.sheet-body .grid { margin-top: 4px; }

@media (max-width: 720px) {
  .sheet-panel { height: 84vh; border-radius: 18px 18px 0 0; }
  .sheet-body { padding: 4px 14px 24px; }
}

/* ── 4. 榜单页筛选 ── */
.rank-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 20px;
}
.rank-frow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rank-flabel {
  min-width: 30px;
  font-size: 12px;
  color: var(--dim-2);
  letter-spacing: 0.04em;
}
.rank-fsep {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.12);
}
.rank-score.plays {
  font-size: 12px;
  font-weight: 500;
  color: #7dd3fc;
  letter-spacing: 0;
}
.rank-row.hot .rank-bar i {
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.35), #7dd3fc);
}

/* ── 5. 清空收藏 / 清空记录按钮 ── */
#favClear.more,
#histClear.more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  flex: none;
  transition: transform 0.24s var(--ease), box-shadow 0.28s var(--ease), background 0.28s, color 0.24s, border-color 0.28s;
}
#favClear.more::before,
#histClear.more::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
#favClear.more {
  color: #ffd9e2;
  background: linear-gradient(180deg, rgba(255, 99, 132, 0.17), rgba(255, 99, 132, 0.055));
  border: 1px solid rgba(255, 110, 140, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 10px 24px -18px rgba(255, 80, 120, 0.95);
}
#favClear.more::before {
  background: #ff6e8c;
  box-shadow: 0 0 10px rgba(255, 110, 140, 0.95);
}
#favClear.more:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 99, 132, 0.32), rgba(255, 99, 132, 0.12));
  border-color: rgba(255, 130, 160, 0.62);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255, 99, 132, 0.13), 0 14px 30px -16px rgba(255, 80, 120, 1);
}
#favClear.more:active,
#histClear.more:active { transform: translateY(0) scale(0.97); }

#histClear.more {
  color: #d7e6f5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
#histClear.more::before {
  background: #7dd3fc;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.85);
}
#histClear.more:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.22), rgba(125, 211, 252, 0.08));
  border-color: rgba(125, 211, 252, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1), 0 14px 30px -18px rgba(125, 211, 252, 0.9);
}

/* ── 6. 线路检测三态：待测压暗，出结论立刻点亮 ── */
.line-tab.probing {
  opacity: 0.5;
  filter: saturate(0.55) brightness(0.78);
}
.line-tab.ok { opacity: 1; }
.line-tab.slow { opacity: 0.92; }
.line-tab.dead { opacity: 0.42; }

/* 播放页线路下拉里的检测结论 */
.gsel-item .gi-main i.is-good { color: #6ee7b7; }
.gsel-item .gi-main i.is-warn { color: #fbbf24; }
.gsel-item .gi-main i.is-bad { color: #f87171; }

/* 4K 徽章的 H.265 提示 */
.line-tab .q.warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.12);
}

/* ── 7. 小屏适配 ── */
@media (max-width: 720px) {
  .hr-track { gap: 12px; padding: 22px 8px 14px; }
  .hcard { width: 46vw; }
  .rank-flabel { min-width: 0; }
}

/* ══════════ V6：首页顶部「最近一月热门」横向长方形玻璃卡 + 叠压堆叠 + 无缝循环 ══════════ */
.heroRow { margin: 10px 0 34px; }

.hr-wrap { position: relative; margin: 0 -6px; }

.hr-track {
  display: flex;
  gap: 0;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: visible;
  padding: 26px 10px 26px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.hr-track::-webkit-scrollbar { display: none; }
.hr-track.dragging { cursor: grabbing; }

/* 单张卡：横向长方形，封面在左、描述在右 */
.hcard {
  --k: 0.4;
  position: relative;
  flex: 0 0 auto;
  width: clamp(298px, 33vw, 408px);
  margin-right: -76px;
  z-index: calc(var(--k) * 100);
  transform: scale(calc(0.905 + var(--k) * 0.095));
  transform-origin: center center;
  opacity: calc(0.5 + var(--k) * 0.5);
  transition: transform 0.55s var(--ease), opacity 0.45s var(--ease-soft);
  will-change: transform, opacity;
}
.hcard:last-child { margin-right: 0; }
.hcard.cur {
  opacity: 1;
  z-index: 120;
}

.hc-link {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 136px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03) 46%, rgba(255, 255, 255, 0.06)),
    linear-gradient(180deg, rgba(19, 26, 42, 0.985), rgba(9, 13, 22, 0.99));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 22px 48px -26px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

/* 玻璃流光：缓慢横穿的宽亮带 */
.hc-link::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -55%;
  width: 42%;
  height: 220%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(180, 225, 255, 0.16) 42%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(180, 225, 255, 0.14) 58%,
    transparent
  );
  transform: rotate(12deg);
  animation: hcSheen 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes hcSheen {
  0% { left: -55%; opacity: 0; }
  12% { opacity: 0.85; }
  55% { left: 112%; opacity: 0.7; }
  62%, 100% { left: 118%; opacity: 0; }
}

.hcard.cur .hc-link {
  box-shadow:
    0 34px 74px -30px rgba(96, 165, 250, 0.85),
    0 0 0 1px rgba(125, 211, 252, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* 左侧封面 */
.hc-cover {
  position: relative;
  flex: 0 0 104px;
  overflow: hidden;
  background: linear-gradient(150deg, #1b2436, #0d1220);
}
.hc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}
.hc-cover img.fade { opacity: 0.35; }
.hc-link:hover .hc-cover img { transform: scale(1.06); }
.hc-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 52%, rgba(10, 14, 24, 0.92) 100%);
  pointer-events: none;
}

.hc-rank {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d7e9ff;
  background: rgba(6, 10, 20, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  z-index: 2;
}
.hcard.cur .hc-rank {
  color: #08121f;
  background: linear-gradient(140deg, #e2f1ff, #9ec9ff);
}

/* 右侧信息 */
.hc-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 16px 12px 14px;
}
.hc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hc-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f2f7ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hc-meta {
  font-size: 11.5px;
  color: var(--dim-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hc-desc {
  font-size: 12px;
  color: #9fb4cf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hc-heat {
  margin-top: 2px;
  font-size: 11px;
  color: #f5c77a;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hc-info .qb { flex: none; }

/* 两侧按键在小屏隐藏，靠滑动 */
@media (max-width: 860px) {
  .hcard { width: 78vw; margin-right: -84px; }
  .hc-link { height: 124px; }
  .hc-cover { flex-basis: 88px; }
  .hc-info { padding: 10px 12px; }
  .heroRow .section-head .row-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-link::after { animation: none; opacity: 0; }
}.hr-refresh { flex: none; width: 30px; height: 30px; margin-left: 10px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); color: rgba(226, 236, 250, 0.86); cursor: pointer; }
.hr-refresh svg {
  width: 14px;
  height: 14px;
}.hr-refresh:hover { color: #eaf7ff; }
.hr-refresh:active {
  transform: scale(0.94);
}
.hr-refresh.spin svg {
  animation: hrSpin 0.72s cubic-bezier(0.4, 0, 0.3, 1);
}
@keyframes hrSpin {
  to {
    transform: rotate(360deg);
  }
}
.section-head .hr-refresh + .row-nav {
  margin-left: 4px;
}

/* H.265 提示浮层：不遮挡控制条，落在画面上方三分之一处 */
.hevc-tip {
  position: absolute;
  left: 50%;
  top: 15%;
  z-index: 7;
  transform: translate(-50%, 8px);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100% - 48px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 195, 96, 0.24);
  background: linear-gradient(160deg, rgba(35, 28, 16, 0.94), rgba(16, 14, 12, 0.96));
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.hevc-tip.in {
  opacity: 1;
  transform: translate(-50%, 0);
}
.hevc-tip .ht-ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #151008;
  background: linear-gradient(150deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 22px -12px rgba(245, 158, 11, 0.9);
}
.hevc-tip .ht-txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hevc-tip .ht-txt b {
  font-size: 13.5px;
  font-weight: 600;
  color: #f7e7c4;
}
.hevc-tip .ht-txt i {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(232, 224, 210, 0.62);
}
.hevc-tip .ht-act {
  flex: none;
  display: flex;
  gap: 8px;
}
@media (max-width: 720px) {
  .hevc-tip {
    flex-wrap: wrap;
    top: 10%;
    gap: 10px;
  }
  .hevc-tip .ht-act {
    width: 100%;
  }
  .hevc-tip .ht-act .btn {
    flex: 1 1 0;
  }
}

/* ==================== V7：首页大卡轮播 + 流动背景 + 网速 ==================== */

/* 色彩渐变流动：在星云层上加一层缓慢游走的多色带 */
.bg::before {
  content: "";
  position: absolute;
  inset: -14%;
  background:
    linear-gradient(112deg,
      rgba(56, 189, 248, 0.20) 0%,
      rgba(99, 102, 241, 0.20) 22%,
      rgba(167, 139, 250, 0.22) 42%,
      rgba(45, 212, 191, 0.16) 62%,
      rgba(56, 189, 248, 0.18) 82%,
      rgba(139, 92, 246, 0.20) 100%);
  background-size: 300% 300%;
  filter: blur(38px) saturate(125%);
  animation: hueFlow 26s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes hueFlow {0% { background-position: 0% 30%; }50% { background-position: 60% 70%; }100% { background-position: 100% 20%; }
}

.hero3 { position: relative; margin: 20px 0 12px; }
.h3-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.h3-head .section-title { font-size: 19px; }
.h3-stage {
  position: relative;
  height: clamp(330px, 36vw, 452px);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(26, 34, 54, 0.92), rgba(8, 12, 20, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
}
.h3-slides {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.h3-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s;
}
.h3-slide.on { opacity: 1; visibility: visible; }
.h3-bg { position: absolute; inset: -12%; }
.h3-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(36px) brightness(0.48) saturate(1.2);
  transform: scale(1.14);
  animation: h3Slow 22s ease-in-out infinite alternate;
}
@keyframes h3Slow { from { transform: scale(1.1) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(-1.5%, -1.5%, 0); } }
.h3-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.9) 0%, rgba(5, 8, 15, 0.5) 34%, rgba(5, 8, 15, 0.12) 66%, rgba(5, 8, 15, 0.3) 100%),
    linear-gradient(0deg, rgba(5, 8, 15, 0.66) 0%, rgba(5, 8, 15, 0.3) 22%, rgba(5, 8, 15, 0) 54%);
}
.h3-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  height: 100%;
  padding: 26px clamp(18px, 3vw, 46px) 38px;
}
.h3-poster {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 2 / 3;
  max-width: min(32vw, 322px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 66px -26px rgba(0, 0, 0, 0.94), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: rotate(-1.4deg);
  transition: transform 0.5s var(--ease, ease), box-shadow 0.5s;
}
.h3-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.3) 48%, rgba(210, 236, 255, 0.12) 54%, transparent 62%);
  transform: translateX(-130%);
  animation: h3Gloss 6.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes h3Gloss {
  0%, 62% { transform: translateX(-130%); }
  88%, 100% { transform: translateX(130%); }
}.h3-poster:hover { box-shadow: 0 36px 74px -24px rgba(0, 0, 0, 0.96), 0 0 0 1px rgba(125, 211, 252, 0.42); }
.h3-poster:hover { transform: rotate(0deg) translateY(-5px); }
.h3-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h3-rank {
  position: absolute;
  left: 9px;
  top: 9px;
  min-width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #04121c;
  background: linear-gradient(135deg, #a7f3d0, #7dd3fc);
  box-shadow: 0 6px 18px -8px rgba(125, 211, 252, 0.9);
}
.h3-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 2px clamp(6px, 1.4vw, 22px) 2px 0;
  max-width: min(54vw, 660px);
}
.h3-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h3-heat, .h3-meta {
  font-size: 12px;
  color: #9db0c8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.h3-heat { color: #fbbf24; border-color: rgba(251, 191, 36, 0.28); background: rgba(251, 191, 36, 0.1); }
.h3-title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
  font-size: clamp(23px, 3.1vw, 38px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(96deg, #ffffff, #d8ecff 46%, #bfd4ff 78%, #a9c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.h3-desc {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  max-width: 38ch;
  font-size: 13.2px;
  line-height: 1.62;
  color: #a3b2c6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.h3-actions { display: flex; gap: 10px; margin-top: 4px; }
.h3-actions .btn { height: 38px; }
.h3-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 4;
}
.h3-dot {
  width: 20px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: width 0.32s var(--ease, ease), background 0.32s, box-shadow 0.32s;
}
.h3-dot.on {
  width: 34px;
  background: linear-gradient(90deg, #7dd3fc, #c4b5fd);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.85);
}

/* ---------- 大卡：类型与主演、右侧数据块 ---------- */
.h3-facts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h3-genre {
  font-size: 11.5px;
  color: #cfe6ff;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
}
.h3-cast {
  font-size: 11.8px;
  color: #93a6bd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46%;
}
.h3-side {
  flex: 0 0 auto;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.085);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 22px 46px -28px rgba(0, 0, 0, 0.9);
}.h3-side-item { padding: 9px 6px; border-radius: 12px; background: rgba(12, 18, 30, 0.55); border: 1px solid rgba(255, 255, 255, 0.055); }
.h3-side-item { text-align: center; }
.h3-side-item b {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(96deg, #fff, #bfe0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h3-side-item b.sm { font-size: 13px; }
.h3-side-item i {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-style: normal;
  color: #8ea2ba;
  letter-spacing: 0.04em;
}
.h3-side-item.score b { font-size: 26px; background: linear-gradient(96deg, #fde68a, #fbbf24); -webkit-background-clip: text; background-clip: text; }

/* ---------- 大卡：流体渐变背景（Apple Music 风格，缓慢流动） ---------- */
.h3-fluid {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.h3-fluid i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.9;
  mix-blend-mode: screen;
  will-change: transform;
}
.h3-fluid i:nth-child(1) {
  width: 56%;
  aspect-ratio: 1 / 1;
  left: -12%;
  top: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(74, 150, 255, 0.98), rgba(74, 150, 255, 0.28) 46%, rgba(74, 150, 255, 0) 72%);
  animation: h3Fluid1 17s ease-in-out infinite alternate;
}
.h3-fluid i:nth-child(2) {
  width: 48%;
  aspect-ratio: 1 / 1;
  right: 0%;
  top: -22%;
  background: radial-gradient(circle at 50% 50%, rgba(168, 118, 255, 0.94), rgba(168, 118, 255, 0.26) 46%, rgba(168, 118, 255, 0) 72%);
  animation: h3Fluid2 21s ease-in-out infinite alternate;
}
.h3-fluid i:nth-child(3) {
  width: 52%;
  aspect-ratio: 1 / 1;
  right: -10%;
  bottom: -34%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 232, 208, 0.82), rgba(56, 232, 208, 0.2) 48%, rgba(56, 232, 208, 0) 74%);
  animation: h3Fluid3 14s ease-in-out infinite alternate;
}
.h3-fluid i:nth-child(4) {
  width: 44%;
  aspect-ratio: 1 / 1;
  left: 22%;
  bottom: -38%;
  background: radial-gradient(circle at 50% 50%, rgba(126, 196, 255, 0.86), rgba(126, 196, 255, 0.2) 48%, rgba(126, 196, 255, 0) 74%);
  animation: h3Fluid4 19s ease-in-out infinite alternate;
}
@keyframes h3Fluid1 {
}
@keyframes h3Fluid2 {
}
@keyframes h3Fluid3 {
}
@keyframes h3Fluid4 {
  0% { transform: translate3d(0, 0, 0) scale(0.9); }
  50% { transform: translate3d(38%, -38%, 0) scale(1.44); }
  100% { transform: translate3d(-8%, -16%, 0) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) { .h3-fluid i { animation: none; } }

/* ---------- 大卡：接下来 3 部 ---------- */
.h3-next {
  flex: 0 0 clamp(184px, 15vw, 232px);
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 100%;
  overflow: hidden;
}
.h3-next-h {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #8098b2;
  text-transform: uppercase;
  padding-left: 2px;
}
.h3-next-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  cursor: pointer;
  text-align: left;
  transition: transform 0.24s, border-color 0.24s, background 0.24s;
}
.h3-next-item:hover {
  transform: translateX(3px);
  border-color: rgba(125, 211, 252, 0.4);
  background: linear-gradient(150deg, rgba(125, 211, 252, 0.14), rgba(125, 211, 252, 0.04));
}
.h3-next-item img {
  width: 34px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  background: #131a26;
}
.h3-next-item span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h3-next-item b {
  font-size: 12px;
  font-weight: 600;
  color: #e8f1fb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h3-next-item i {
  font-size: 10.5px;
  font-style: normal;
  color: #8598b0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1180px) { .h3-next { display: none; } }

/* 加载层：实时网速 */
.pl-speed {
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #8fa5bf;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.pl-speed.on { color: #7dd3fc; }
.pl-speed.fast { color: #34d399; }
.pl-speed.slow { color: #f59e0b; }

@media (max-width: 860px) {
  .h3-stage { height: clamp(360px, 88vw, 460px); }.h3-inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; overflow: hidden; }
  .h3-body { flex: none; }
  .h3-side { display: none; }
  .h3-poster { height: 148px; max-width: none; }
  .h3-desc { display: none; }
  .h3-title { font-size: 21px; }
  .h3-actions .btn { height: 34px; font-size: 12.5px; }
}

/* ==================== V7.2：按钮统一玻璃质感 + 交互反馈 ==================== */
.btn {
  border-radius: 11px;
  letter-spacing: 0.01em;
  transition: transform 0.24s var(--ease, ease), box-shadow 0.28s, border-color 0.24s, background 0.28s, color 0.2s;
}
.btn.ghost,
.btn.sm.ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.125);
  color: #dbe7f5;
  backdrop-filter: blur(14px) saturate(165%);
  -webkit-backdrop-filter: blur(14px) saturate(165%);
}
.btn.ghost:hover,
.btn.sm.ghost:hover {
  color: #f2f9ff;
  border-color: rgba(125, 211, 252, 0.52);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.2), rgba(125, 211, 252, 0.06));
  box-shadow: 0 12px 28px -16px rgba(125, 211, 252, 0.85);
  transform: translateY(-1px);
}
.btn.sm {
  height: 34px;
  padding: 0 13px;
  font-size: 12.5px;
  border-radius: 10px;
}
.btn:active { transform: translateY(0) scale(0.985); }
.btn.primary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px -20px rgba(125, 211, 252, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn.primary:hover { box-shadow: 0 18px 40px -18px rgba(125, 211, 252, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.player-bar .btn,
.player-bar .gsel-btn {
  height: 34px;
  border-radius: 10px;
}
.player-bar .btn { background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)); }

.fav-btn.on { background: linear-gradient(180deg, rgba(244, 114, 182, 0.26), rgba(244, 114, 182, 0.08)); border-color: rgba(244, 114, 182, 0.5); color: #ffe4f1; }

.ep-row {
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
}
.ep-row:hover {
  background: linear-gradient(100deg, rgba(125, 211, 252, 0.16), rgba(125, 211, 252, 0.05));
  border-color: rgba(125, 211, 252, 0.34);
  transform: translateX(2px);
}
.ep-row.active { box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.44), 0 10px 24px -18px rgba(125, 211, 252, 0.9); }

.gsel-item { transition: background 0.18s, padding-left 0.18s, color 0.18s; }
.gsel-item:hover { background: rgba(125, 211, 252, 0.13); }
.gsel-item.is-on { background: rgba(125, 211, 252, 0.16); }

.line-tab { transition: transform 0.22s, border-color 0.22s, background 0.26s, box-shadow 0.26s, color 0.2s; }
.line-tab:hover { transform: translateY(-2px); }

.hr-refresh:hover { transform: rotate(28deg) scale(1.04); border-color: rgba(125, 211, 252, 0.5); box-shadow: 0 10px 24px -14px rgba(125, 211, 252, 0.8); }
.hr-refresh { transition: transform 0.4s var(--ease, ease), border-color 0.24s, box-shadow 0.24s, background 0.24s; }

.row-nav button:hover { background: linear-gradient(180deg, rgba(125, 211, 252, 0.22), rgba(125, 211, 252, 0.07)); color: #f2f9ff; }
.row-nav button:active { transform: scale(0.94); }

/* ---- 跨域部署时的后端引导条 ---- */
.api-setup {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 60;
  width: min(680px, calc(100vw - 28px));
  transform: translate3d(-50%, -18px, 0);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.api-setup.on {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}
.api-setup .as-inner {
  padding: 14px 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: linear-gradient(180deg, rgba(17, 24, 38, 0.96), rgba(9, 13, 22, 0.98));
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
.api-setup .as-txt b {
  display: block;
  font-size: 14px;
  color: #eaf4ff;
  letter-spacing: 0.01em;
}
.api-setup .as-txt i {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
  color: #93a4bd;
}
.api-setup .as-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.api-setup .as-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e8f1ff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.api-setup .as-input:focus {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.14);
}
.api-setup .as-input::placeholder {
  color: #5d6c84;
}
.api-setup .as-go,
.api-setup .as-close {
  height: 36px;
  flex: none;
}
.api-setup .as-close {
  width: 36px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.api-setup .as-tip {
  margin-top: 8px;
  font-size: 11px;
  color: #74849c;
}
.api-setup .as-tip code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #a8c8e8;
  font-size: 11px;
}
@media (max-width: 560px) {
  .api-setup {
    top: 10px;
  }
  .api-setup .as-row {
    flex-wrap: wrap;
  }
  .api-setup .as-input {
    flex: 1 1 100%;
  }
}

/* ===== 首页大卡：封面扑克牌牌堆 ===== */
#h3Stage { --deck-w: clamp(158px, 18vw, 238px); }

.h3-deck {
  position: absolute;
  left: clamp(18px, 3vw, 46px);
  top: 28px;
  bottom: 36px;
  width: var(--deck-w);
  z-index: 4; /* 必须压在流体色斑(2)与文字层(3)之上，否则海报会被雾化变暗 */
  perspective: 1500px;
  perspective-origin: 50% 55%;
}
.h3-deck::after {
  content: "";
  position: absolute;
  left: 4%;
  right: -6%;
  bottom: -16px;
  height: 28px;
  z-index: -1;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, .62), transparent 74%);
  filter: blur(10px);
  opacity: .9;
}
.h3-card {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 15px;
  overflow: hidden;
  transform-origin: 50% 92%;
  will-change: transform, opacity, filter;
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, .92), inset 0 0 0 1px rgba(255, 255, 255, .09);
  transition: transform .72s cubic-bezier(.22, 1, .36, 1), opacity .46s ease, filter .5s ease, box-shadow .5s ease;
  backface-visibility: hidden;
  text-decoration: none;
}
.h3-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h3-card img { filter: brightness(1.06) contrast(1.03); }

.h3-card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(103deg, transparent 34%, rgba(255, 255, 255, .1) 43%, rgba(214, 236, 255, .26) 47.5%, rgba(255, 255, 255, .08) 52%, transparent 61%);
  background-size: 260% 100%;
  background-position: 135% 0;
  will-change: background-position, opacity;
}
.h3-card[data-rel="0"] { transform: translate3d(0, 0, 0) rotate(-1.6deg) scale(1); z-index: 40; opacity: 1; filter: none; }
.h3-card[data-rel="0"] .h3-card-sheen { animation: deckSheen 8.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.h3-card[data-rel="0"]:hover { transform: translate3d(0, -4px, 0) rotate(0deg) scale(1.014); box-shadow: 0 34px 66px -22px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(125, 211, 252, .5); }
.h3-card[data-rel="1"] { transform: translate3d(9.5%, -3%, 0) rotate(4.5deg) scale(.962); z-index: 30; opacity: 1; filter: brightness(1) saturate(1.02); }
.h3-card[data-rel="2"] { transform: translate3d(17.5%, -6%, 0) rotate(8.2deg) scale(.922); z-index: 20; opacity: .96; filter: brightness(.94) saturate(1); }
.h3-card[data-rel="3"] { transform: translate3d(24.5%, -8.6%, 0) rotate(11.4deg) scale(.888); z-index: 10; opacity: .84; filter: brightness(.86) saturate(.98); }
.h3-card[data-rel="off"] { transform: translate3d(-32%, 2%, 0) rotate(-15deg) scale(.9); z-index: 5; opacity: 0; pointer-events: none; }

@keyframes deckSheen {
  0% { background-position: 135% 0; opacity: 0; }
  8% { opacity: .85; }
  46% { background-position: -60% 0; opacity: .55; }
  62%, 100% { background-position: -60% 0; opacity: 0; }
}

/* 文字区让出牌位 */
.h3-inner { padding-left: calc(clamp(18px, 3vw, 46px) + var(--deck-w) + clamp(76px, 7.8vw, 124px)); }
.h3-deck.shuffle { animation: deckShuffle .64s cubic-bezier(.22, 1, .36, 1); }
@keyframes deckShuffle {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  38% { transform: translate3d(-11px, 2px, 0) rotate(-1.5deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@media (max-width: 860px) {
  .h3-deck { display: none; }
  .h3-inner { padding: 20px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .h3-card { transition: opacity .2s linear; }
  .h3-card[data-rel="0"] .h3-card-sheen { animation: none; opacity: .4; }
}
/* 牌面边缘高光，让叠压层次更清楚 */
.h3-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.h3-card[data-rel="0"]::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
/* 当前牌顶部玻璃反光（替代大块白雾） */
.h3-card[data-rel="0"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(176deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 18%, transparent 40%);
  mix-blend-mode: screen;
}

/* ---------- section-head 的次级动作按钮（完整榜单 / 榜单首页）---------- */
.section-head .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: #cfe4f6;
  white-space: nowrap;
  flex: none;
}

.section-head .more::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(140deg, #7dd3fc, #a78bfa);
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.9);
}

.section-head .more:hover {
  transform: translateY(-2px);
  color: #eaf7ff;
}

.section-head .more:active {
  transform: translateY(0) scale(0.975);
}

@media (max-width: 640px) {
  .section-head .more {
    height: 28px;
    padding: 0 11px 0 10px;
    font-size: 12px;
  }
}

/* ── 渲染性能（对外观零改动）───────────────────────────────────────
   1) 视口外的板块整块跳过渲染：里面的 CSS 动画、backdrop-filter 玻璃层、
      上百张图片的解码与合成全部暂停，滚到该区块再按原样渲染。
   2) 页面切到后台时冻结所有动画，回到前台继续。
   这两条针对的是「浏览器连带闪退」：首页一度有 155 个动画 + 148 处
   backdrop-filter 同时常驻，GPU 合成内存直接爆掉，渲染进程就崩了。   */

.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.home-foot {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}

/* 卡片网格里暂时不可见的那几行不再参与绘制 */
.card {
  content-visibility: auto;
  contain-intrinsic-size: auto 246px;
}

html.is-hidden *,
html.is-hidden *::before,
html.is-hidden *::after {
  animation-play-state: paused !important;
}

/* 背景装饰层单独隔离合成，避免和内容层反复重绘 */
.bg {
  contain: strict;
}

@media (prefers-reduced-motion: reduce) {
  .section,
  .card,
  .home-foot {
    content-visibility: visible;
  }
}
/* ============================================================
   § 自适应：手机 / 平板（触屏、安全区、底部导航、触控目标）
   追加段，不改动上面任何既有规则，只在窄屏与触屏条件下生效
   ============================================================ */

/* 触屏基础：去掉点击高亮与双击缩放带来的 300ms 延迟 */
html { -webkit-text-size-adjust: 100%; }
a, button, .card, .chip, .seg-btn, .tabbar a { touch-action: manipulation; }

/* 底部导航：默认不存在，只在窄屏出现 */
.tabbar { display: none; }

/* ---------- 中屏平板（721–1180）：顶栏导航改为可横滚的紧凑版 ---------- */
@media (min-width: 721px) and (max-width: 1180px) {
  .topbar { gap: 10px; padding: 0 16px; }
  .topnav {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 46vw;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    padding: 3px;
  }
  .topnav::-webkit-scrollbar { height: 0; width: 0; }
  .topnav a { flex: none; padding: 0 9px; font-size: 12.5px; }
  .search { flex: 1 1 auto; min-width: 140px; }
  .status { flex: none; }
}

/* ---------- 手机（≤720）：底栏导航 + 竖向信息流 ---------- */
@media (max-width: 720px) {
  :root { --tabbar-h: 56px; }

  /* 底部导航 */
  .tabbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.82), rgba(6, 8, 14, 0.97) 62%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 -18px 42px -30px rgba(0, 0, 0, 0.95);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 46px;
    border-radius: 11px;
    font-size: 10.5px;
    letter-spacing: 0.02em;
    color: rgba(160, 176, 198, 0.92);
    transition: color 0.22s, background 0.22s;
  }
  .tabbar a svg { color: rgba(150, 168, 192, 0.95); transition: color 0.22s, filter 0.22s, transform 0.22s; }
  .tabbar a.on { color: #eaf7ff; background: rgba(125, 211, 252, 0.1); }
  .tabbar a.on svg { color: #7dd3fc; filter: drop-shadow(0 0 7px rgba(125, 211, 252, 0.8)); transform: translateY(-1px); }
  .tabbar a:active { background: rgba(255, 255, 255, 0.07); }

  /* 内容给底栏与安全区让位 */
  .app { padding-bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom, 0px)); }
  .foot { padding-bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom, 0px)); }

  /* 顶栏：安全区留白 + 更紧凑 */
  .topbar {
    height: auto;
    min-height: 54px;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px;
    gap: 8px;
  }
  .topbar.scrolled { height: auto; }
  .brand-text em { display: none; }
  .brand { min-height: 40px; }
  .search { height: 38px; min-width: 0; padding: 0 10px; }
  .search input { font-size: 16px; /* ≥16px 才不会被 iOS 聚焦时放大 */ }
  .status { width: 30px; height: 30px; padding: 0; justify-content: center; }
  .status #statusText { display: none; }

  /* 大卡：不再藏起海报，改成左上角一张小封面 + 右侧文字 */
  #h3Stage { height: auto; min-height: 268px; }
  .h3-deck {
    display: block;
    position: absolute;
    left: 14px;
    top: 16px;
    bottom: auto;
    width: 96px;
    height: 144px;
    z-index: 4; /* 必须高于流体色斑(z2)，否则小尺寸下会被雾化变暗 */
  }
  .h3-card { border-radius: 11px; }
  .h3-card[data-rel="1"], .h3-card[data-rel="2"], .h3-card[data-rel="3"], .h3-card[data-rel="off"] { opacity: 0; }
  .h3-card[data-rel="0"] { transform: none; }
  .h3-inner { padding: 16px 14px 18px calc(14px + 96px + 13px); }
  .h3-body { flex: none; }
  .h3-title { font-size: 23px; line-height: 1.2; }
  .h3-desc { -webkit-line-clamp: 2; font-size: 12.5px; }
  .h3-side { display: none; }
  .h3-tags { gap: 6px; }
  .h3-actions { gap: 8px; margin-top: 12px; }
  .h3-actions .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .h3-dots { bottom: 10px; right: 14px; }

  /* 本周追剧：横滑 + 右侧渐隐提示 */
  .cal-days { padding-right: 22px; mask-image: linear-gradient(90deg, #000 88%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%); }

  /* 卡片网格：两列，间距收一点 */
  .grid.cols6, .grid { gap: 10px; }
  .card-name { font-size: 13px; }
  .card-name small, .card-meta, .card-hint { font-size: 11.5px; }
  .qb { font-size: 10px; }

  /* 板块标题 */
  .section-title { font-size: 16.5px; }
  .section-sub { font-size: 11.5px; }
  .section { margin-top: 22px; }

  /* 详情页 */
  .detail-hero { gap: 12px; }
  .line-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; mask-image: linear-gradient(90deg, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%); }
  .line-tabs::-webkit-scrollbar { height: 0; }
  .line-tab { flex: none; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 7px; }
  .ep { min-height: 42px; font-size: 12.5px; }

  /* 播放页 */
  .player-layout { gap: 12px; }
  .video-wrap { border-radius: 13px; }
  .player-bar { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .player-bar .gsel { flex: 1 1 46%; min-width: 0; }
  .player-bar .btn { flex: 1 1 auto; justify-content: center; }
  .gsel-btn { min-height: 42px; }
  .gsel-pop { min-width: min(88vw, 320px); }
  .gsel-pop-in { max-height: min(52dvh, 380px); }
  .side-panel { margin-top: 4px; }
  .ep-list { max-height: 44dvh; }
  .resume-panel { order: -1; }

  /* 半屏面板 / 浮层：允许在手机浏览器地址栏收起时也撑满 */
  .sheet-panel { height: min(78dvh, 720px); border-radius: 18px 18px 0 0; }
  .hevc-tip { top: 12%; width: calc(100% - 24px); }

  /* 榜单两列改单列 */
  .rank-grid { grid-template-columns: 1fr; }
  .rank-filters { gap: 6px; }
  .rank-name { font-size: 13px; }
}

/* 超窄屏（≤400）：进一步压缩 */
@media (max-width: 400px) {
  .h3-deck { width: 84px; height: 126px; }
  .h3-inner { padding-left: calc(14px + 84px + 11px); }
  .h3-title { font-size: 21px; }
  .tabbar a { font-size: 10px; }
  .grid.cols6, .grid { gap: 8px; }
  .topbar { padding-left: 10px; padding-right: 10px; }
}

/* ---------- 触屏（手机/平板）：把鼠标态的信息改为常显、目标放大 ---------- */
@media (hover: none), (pointer: coarse) {
  .card-hint { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .hc-del { opacity: 1; transform: scale(1); }
  .hcard .hc-heat { opacity: 1; }
  .line-tab:hover { transform: none; }
  .btn:active, .chip:active, .seg-btn:active, .line-tab:active, .ep:active { transform: scale(0.972); }
  .btn, .chip, .seg-btn, .more, .check-lines, .hr-refresh { min-height: 42px; }
  .hr-refresh { min-width: 42px; }
  .ep { min-height: 44px; }
  .gsel-btn { min-height: 42px; }
  .gsel-item { min-height: 46px; }
  .ep-row { min-height: 44px; }
  .search kbd { display: none; }
  /* 触屏没有 hover，卡片的高光跟随取消，省电量 */
  .card::after { display: none; }
}

/* 横屏矮屏（手机横放看电影）：顶栏与底栏都收掉，给画面让高度 */
@media (max-height: 520px) and (orientation: landscape) {
  .topbar { position: static; }
  .tabbar { display: none; }
  .app { padding-bottom: 16px; }
  .foot { padding-bottom: 16px; }
  .video-wrap { border-radius: 0; }
}

/* ---------- 手机细节修正（第二轮）---------- */
@media (max-width: 720px) {
  /* 大卡按钮：文案不许折行，两个并排刚好塞进一行 */
  .h3-actions { gap: 7px; }
  .h3-actions .btn { white-space: nowrap; padding: 0 12px; font-size: 12.5px; letter-spacing: 0; }
  .h3-desc { margin-top: 7px; }

  /* 分类速览：四格改两列（单列会拉出一屏半的空白高度） */
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cat-card { padding: 11px 12px; }
  .cat-head b { font-size: 13.5px; }
  .cat-list { gap: 3px; }

  /* chips / 分段按钮 / 图标按钮：手指要有落点，不用管指针类型 */
  .chips { gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { height: 0; }
  .chip { min-height: 40px; padding: 0 14px; font-size: 12.5px; flex: none; }
  .seg-btn { min-height: 38px; padding: 0 13px; font-size: 12.5px; }
  .hr-refresh { width: 40px; height: 40px; }
  .more, .check-lines { min-height: 38px; }

  /* 轮播点：视觉仍细，但手指可点的范围扩大到 30px 高 */
  .h3-dot { position: relative; }
  .h3-dot::after { content: ""; position: absolute; inset: -13px -4px; }

  /* 角标字号抬到 11px，10px 在手机上发虚 */
  .qb { font-size: 11px; padding: 2px 6px; }
  .card-hint { font-size: 11.5px; }
  .h3-rank { font-size: 11px; }

  /* 底部导航：窄屏图标略小一点，保证 6 项都留白 */
  .tabbar a svg { width: 19px; height: 19px; }
}

/* 触屏（含平板）上的点击反馈：按下轻微内缩，替代 hover */
@media (hover: none), (pointer: coarse) {
  .card:active .card-poster img { transform: scale(1.03); }
  .tabbar a:active svg { transform: scale(0.92); }
}

/* ---------- 手机播放页：控制条重排（第三轮）----------
   390px 宽度下「线路 / 画质 / 上一集 / 下一集 / 收藏 / 说明」六个元素原本硬挤一行，
   结果线路名被省略成「1080P·官...」。改为两列栅格：上行两个下拉各占一半，
   下行三个按钮 + 说明，谁都不用截断。 */
@media (max-width: 720px) {
  .player-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 11px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .player-bar > .gsel { width: 100%; min-width: 0; flex: none; }
  .player-bar > .gsel .gsel-btn { width: 100%; }
  .player-bar > .gsel .gsel-cur { max-width: none; }
  .player-bar > #prevEp,
  .player-bar > #nextEp,
  .player-bar > #favBtn { flex: 1 1 0; min-width: 0; justify-content: center; }
  .player-bar > #prevEp,
  .player-bar > #nextEp,
  .player-bar > #favBtn { width: 100%; }
  .player-bar > .bar-note {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: left;
    font-size: 11px;
    line-height: 1.5;
  }
  /* 第三行三个按钮自己也占两格时，让它们横跨整行 */
  .player-bar { grid-auto-rows: minmax(0, auto); }
  .player-bar > #prevEp { grid-column: 1 / 2; }
  .player-bar > #nextEp { grid-column: 2 / 3; }
  .player-bar > #favBtn { grid-column: 1 / -1; }

  /* 视频区高度：竖屏别再按 16:9 撑出一大块黑边，改用 16:10 上限 */
  .video-wrap { max-height: 62dvh; }
  .player-top { padding: 9px 11px; }
  .player-top .pt-title { font-size: 13px; }
}

/* ---------- 手机播放页控制条：彻底解决线路名被省略（第四轮）----------
   .gsel-cur 原本有 max-width 限制且 flex-shrink 会吃掉宽度，导致「1080P · 官方R」
   变成「1080P · 官...」。这里把线路格加宽、标签缩小、允许 cur 抢满剩余宽度。 */
@media (max-width: 720px) {
  .player-bar { grid-template-columns: 1.4fr 1fr; }
  .player-bar .gsel { min-width: 0; }
  .player-bar .gsel-btn { padding: 0 9px; gap: 5px; }
  .player-bar .gsel-k { font-size: 10.5px; letter-spacing: 0; }
  .player-bar .gsel-cur {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-bar .gsel-caret { flex: none; width: 10px; }
}

/* 超窄屏（<360）再缩一档 */
@media (max-width: 359px) {
  .player-bar .gsel-cur { font-size: 10.5px; }
  .player-bar .gsel-k { display: none; }
}

/* ---------- 平板竖屏（721–860）：补回大卡封面、日历一行七列、卡片三列（第五轮）----------
   ≤860 的旧规则把牌堆直接 display:none，于是 iPad 竖屏大卡只剩文字；
   日历在 768 下被压成 4+3 两行；卡片只有两列、单张 355px 太胖。 */
@media (min-width: 721px) and (max-width: 860px) {
  .h3-deck {
    display: block;
    position: absolute;
    left: 16px;
    top: 22px;
    bottom: auto;
    width: 138px;
    height: 207px;
    z-index: 4; /* 必须高于流体色斑(z2)，否则小尺寸下会被雾化变暗 */
  }
  .h3-card { border-radius: 13px; }
  .h3-inner { padding: 20px 22px 24px calc(16px + 138px + 24px); }
  .h3-side { min-width: 96px; }

  .cal-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
  .cal-day { padding: 8px 6px; }

  .grid.cols6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 721–1180：日历保持一行七列，别在中屏折行 */
@media (min-width: 721px) and (max-width: 1180px) {
  .cal-days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* ==================== V8 首页大卡：平板 / 手机重新排版 ====================
   旧规则在 <=860 把 .h3-inner 改成 flex-direction:column、.h3-body 改 flex:none、
   .h3-desc 直接 display:none，于是平板右侧空出三百多像素、内容全堆在左边，
   牌堆第 2~4 张的扇形位移还会压到标题上。这里统一改成「左封面 + 右自适应正文」
   的横向结构：正文吃掉全部剩余宽度，说明文字回来两行，牌堆按自身宽度留出安全区。 */
@media (max-width: 900px) {
  .h3-stage, #h3Stage {
    height: auto;
    min-height: 0;
  }

  .h3-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    gap: 0;
    padding: 18px 16px 34px calc(16px + var(--deck-w) * 1.28 + 18px);
    overflow: visible;
  }

  .h3-body {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    justify-content: center;
    padding-right: 0;
  }

  .h3-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.62;
  }

  .h3-facts { margin-top: 9px; gap: 7px; }
  .h3-actions { margin-top: 12px; }
  .h3-dots { bottom: 12px; }
}

/* ---- 平板竖屏 721–900：三张扇牌 + 右侧数据格 ---- */
@media (min-width: 721px) and (max-width: 900px) {
  #h3Stage { --deck-w: 148px; }
  .h3-deck { left: 16px; top: 20px; bottom: auto; width: var(--deck-w); height: 222px; }
  .h3-card[data-rel="1"] { transform: translate3d(7%, -3%, 0) rotate(4deg) scale(.966); }
  .h3-card[data-rel="2"] { transform: translate3d(13%, -6%, 0) rotate(7.6deg) scale(.93); }
  .h3-card[data-rel="3"] { transform: translate3d(18%, -8.4%, 0) rotate(10.6deg) scale(.896); }
  .h3-title { font-size: 25px; }
  .h3-actions .btn { height: 34px; font-size: 12.5px; }
  .h3-side {
    display: flex;
    flex: 0 0 auto;
    align-self: center;
    min-width: 88px;
  }
  .h3-side-item { padding: 8px 5px; }
  .h3-side-item b { font-size: 18px; }
  .h3-side-item i { font-size: 9.5px; }
}

/* ---- 手机 <=720：单张竖版封面 + 紧凑正文 ---- */
@media (max-width: 720px) {
  #h3Stage { --deck-w: 88px; }
  .h3-deck {
    left: 14px;
    top: 17px;
    bottom: auto;
    width: var(--deck-w);
    height: 132px;
  }
  .h3-inner {
    padding: 17px 14px 32px calc(14px + var(--deck-w) * 1.28 + 12px);
  }
  .h3-title { font-size: 22px; line-height: 1.22; }
  .h3-desc { -webkit-line-clamp: 2; margin-top: 6px; font-size: 12px; line-height: 1.55; }
  .h3-actions { margin-top: 10px; gap: 7px; }
  .h3-actions .btn { height: 33px; font-size: 12px; padding: 0 12px; }
  .h3-tags { gap: 5px; margin-bottom: 6px; }
  .h3-dots { bottom: 10px; left: calc(14px + var(--deck-w) * 1.28 + 12px); justify-content: flex-start; }
}

/* 超窄屏 <=400：再收一档 */
@media (max-width: 400px) {
  #h3Stage { --deck-w: 78px; }
  .h3-deck { height: 117px; }
  .h3-title { font-size: 20px; }
  .h3-desc { -webkit-line-clamp: 1; }
}

/* ==================== V8.1 平板横屏（901–1180）====================
   1024×768 实测：大卡高 369px 占掉半屏，牌 184×303 过大，
   正文里说明文字被 max-width 卡在 318px，右侧空出一截。
   这里压高度、收牌宽、放开说明宽度，并把首屏下方内容往上提。 */
@media (min-width: 901px) and (max-width: 1180px) {
  .h3-stage, #h3Stage {
    height: clamp(296px, 29vw, 336px);
    min-height: 0;
  }

  #h3Stage { --deck-w: 164px; }

  .h3-deck {
    left: 26px;
    top: 18px;
    bottom: 26px;
    width: var(--deck-w);
  }

  .h3-inner {
    padding: 18px 26px 30px calc(26px + var(--deck-w) * 1.1 + 26px);
    gap: 14px;
  }

  .h3-body { max-width: 620px; }

  .h3-desc {
    max-width: 100%;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.62;
    -webkit-line-clamp: 3;
  }

  .h3-title { font-size: 29px; line-height: 1.18; }
  .h3-tags { margin-bottom: 8px; }
  .h3-actions { margin-top: 12px; }
  .h3-actions .btn { height: 36px; font-size: 13px; }

  .h3-side {
    min-width: 84px;
    gap: 7px;
    align-self: center;
  }
  .h3-side-item { padding: 7px 5px; border-radius: 11px; }
  .h3-side-item b { font-size: 17px; }
  .h3-side-item.score b { font-size: 20px; }
  .h3-side-item i { font-size: 9.5px; }

  .h3-dots { bottom: 11px; }

  /* 首屏节奏：区块间距在横屏略收紧，一屏能看到大卡 + 分类 + 追剧 */
  .section { margin-top: 26px; }
  .chips { margin-top: 18px; }
  .app { padding-top: 16px; }

  /* 卡片网格：4 列在 1024 下每张 218px，比 6 列更耐看 */
  .grid.cols6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* 播放页：右侧选集 250px，视频区留出更多宽度 */
  .player-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
  .side-panel { --side-w: 250px; }
  .ep-list { max-height: 46vh; }

  /* 详情页：海报与信息并排更紧凑 */
  .detail-hero { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .detail-poster { width: 190px; }
}

/* ---- 平板横屏：把右侧空白换成「接下来」列表（V8.2）----
   1024×768 实测大卡右侧空出 240px：数据格只在有豆瓣分/集数时才渲染，
   榜单条目往往一项都没有，于是右边整片空。这里在横屏下固定改用「接下来 3 部」
   填满右侧，既能切片又让版面均衡。 */
@media (min-width: 901px) and (max-width: 1180px) {
  .h3-body { max-width: none; padding-right: 0; }
  .h3-desc { max-width: 100%; }

  .h3-side { display: none; }

  .h3-next {
    display: flex;
    flex-direction: column;
    flex: 0 0 210px;
    align-self: center;
    gap: 4px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(10, 15, 26, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px) saturate(150%);
  }
  .h3-next-h { margin: 0 0 4px 2px; font-size: 10.5px; letter-spacing: 0.06em; color: #8ba0b8; }
  .h3-next-item { padding: 5px 6px; border-radius: 10px; gap: 8px; }
  .h3-next-item img { width: 32px; height: 46px; border-radius: 7px; }
  .h3-next-item b { font-size: 11.5px; }
  .h3-next-item i { font-size: 9.5px; }
}

/* 1181 以上（桌面）保持原样：数据格 + 接下来同时在场 */

/* ---- 修：<=900 时大卡高度塌陷（V8.3）----
   .h3-stage 里 .h3-deck / .h3-slides 都是绝对定位，height:auto 会让容器塌成 2px，
   整个大卡看不见。这里按断点给最小高度，内容再多也由 min-height 兜住。 */
@media (max-width: 900px) {
  .h3-stage, #h3Stage {
    height: auto;
    min-height: 296px;
  }
}
@media (max-width: 720px) {
  .h3-stage, #h3Stage { min-height: 274px; }
}
@media (max-width: 400px) {
  .h3-stage, #h3Stage { min-height: 258px; }
}

/* ---- 修：手机轮播指示点溢出左边界（V8.4）----
   .h3-dots 原本靠 left:50% + translateX(-50%) 居中，我只改了 left 没去掉 transform，
   结果整体左移半个宽度跑到屏幕外。这里改成左右各贴边、宽度自适应。 */
@media (max-width: 720px) {
  .h3-dots {
    left: calc(14px + var(--deck-w) * 1.28 + 12px);
    right: 14px;
    width: auto;
    transform: none;
    justify-content: flex-start;
    gap: 6px;
  }
  .h3-dot { width: 12px; }
  .h3-dot.on { width: 22px; }
}

/* ---- 修：平板横屏卡牌压到标题（V8.5）----
   901–1180 段原先沿用桌面的扇形位移（9.5% / 17.5% / 24.5%），
   但这一档牌宽只有 164px、正文从 232px 起，第 2、3 张牌右缘正好顶到标题；
   旋转 7°~11° 后外角还会再探出 8~10px，于是视觉上压字。
   这里把扇形收窄到 6.5% / 12% / 17%，并给正文再让出 1.34 倍牌宽。 */
@media (min-width: 901px) and (max-width: 1180px) {
  .h3-card[data-rel="1"] { transform: translate3d(6.5%, -3%, 0) rotate(4deg) scale(.966); }
  .h3-card[data-rel="2"] { transform: translate3d(12%, -6%, 0) rotate(7.4deg) scale(.932); }
  .h3-card[data-rel="3"] { transform: translate3d(17%, -8%, 0) rotate(10.2deg) scale(.898); }

  .h3-inner {
    padding-left: calc(26px + var(--deck-w) * 1.34 + 24px);
  }

  .h3-body {
    min-width: 0;
    max-width: none;
  }
}
