/* ==========================================================================
   原画映像 V3 · 融合精修版 (V1 私人影院骨架 × V2 国内精品体验)
   应用 Impeccable + Emil Kowalski + Apple Design 工艺标准：
   - 统一自定义强力缓出曲线 --ease-out，零 transition: all
   - 全站按钮物理按压回弹 :active { transform: scale(0.97) }
   - 单一层级声明（白昼轻阴影，暗夜细轮廓，拒绝脏双重框影）
   - 完整浏览器表面定制（::selection / caret-color / focus-visible / tabular-nums）
   ========================================================================== */

:root {
  /* 白昼主题：通透美术馆白底 */
  --bg-page: #f5f6f8;
  --bg-sidebar: #ffffff;
  --bg-topbar: rgba(255, 255, 255, 0.9);
  --bg-surface: #ffffff;
  --bg-subtle: #eff1f5;
  --bg-hover: #e7ebf2;
  --bg-input: #f1f3f6;

  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);

  --text-1: #14171f;
  --text-2: #525968;
  --text-3: #8a92a1;

  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --accent-soft: rgba(37, 99, 235, 0.09);

  /* 白昼单一阴影层级（不叠厚边框） */
  --elev-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.035);
  --elev-card-hover: 0 8px 24px rgba(15, 23, 42, 0.09);
  --elev-modal: 0 24px 64px rgba(15, 23, 42, 0.22);
  --card-ring: transparent;

  --sidebar-w: 214px;
  --sidebar-mini: 66px;
  --topbar-h: 58px;

  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 14px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-press: cubic-bezier(0.2, 0, 0, 1);

  --font-sans: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: ui-monospace, SFMono-Regular, 'Segoe UI', Consolas, monospace;
}

/* 夜间主题：V1 级深邃影院黑（克制高级，依靠 1px 柔线建立结构） */
[data-theme="dark"] {
  --bg-page: #0a0c10;
  --bg-sidebar: #0e1016;
  --bg-topbar: rgba(14, 16, 22, 0.88);
  --bg-surface: #13161f;
  --bg-subtle: #1a1e29;
  --bg-hover: #222736;
  --bg-input: #171b24;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text-1: #f2f4f8;
  --text-2: #9ba3b4;
  --text-3: #646d7f;

  --accent: #3b82f6;
  --accent-rgb: 59, 130, 246;
  --accent-soft: rgba(59, 130, 246, 0.16);

  /* 暗夜单一细线层级 */
  --elev-card: none;
  --elev-card-hover: 0 12px 30px rgba(0, 0, 0, 0.45);
  --elev-modal: 0 32px 80px rgba(0, 0, 0, 0.78);
  --card-ring: rgba(255, 255, 255, 0.075);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-page);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

::selection {
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--text-1);
}

input, select, textarea {
  caret-color: var(--accent);
}

button, input, select {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

/* 精致滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(130, 140, 158, 0.26);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 140, 158, 0.45);
}

/* ==========================================================================
   整体应用骨架（可折叠左侧纯中文导览 + 右侧主视口）
   ========================================================================== */
.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* 左侧纯中文极简导航栏 */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  transition: width 220ms var(--ease-out), transform 220ms var(--ease-out);
  z-index: 30;
}

.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-mini);
}

.app-shell.sidebar-collapsed .brand-name,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .nav-cnt,
.app-shell.sidebar-collapsed .disk-pill,
.app-shell.sidebar-collapsed .foot-btn span,
.app-shell.sidebar-collapsed .up-meta {
  display: none;
}

.app-shell.sidebar-collapsed .up-card {
  justify-content: center;
  padding: 8px;
}

.app-shell.sidebar-collapsed .sidebar-head {
  justify-content: center;
  padding: 0 10px;
}

.app-shell.sidebar-collapsed .brand {
  display: none;
}

.app-shell.sidebar-collapsed .collapse-btn svg {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 9px;
}

.app-shell.sidebar-collapsed .foot-btns {
  flex-direction: column;
}

.sidebar-head {
  height: var(--topbar-h);
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-1);
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.collapse-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 100ms var(--ease-press);
}

.collapse-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition: transform 200ms var(--ease-out);
}

.collapse-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.collapse-btn:active {
  transform: scale(0.95);
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 9px;
}

.lib-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

.lib-tab {
  min-width: 0;
  height: 30px;
  border: none;
  border-radius: 7px;
  padding: 0 11px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 100ms var(--ease-press);
}

.lib-tab:hover {
  color: var(--text-1);
}

.lib-tab:active {
  transform: scale(0.97);
}

.lib-tab.active {
  background: var(--bg-surface);
  color: var(--text-1);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .lib-tab.active {
  background: var(--bg-hover);
  box-shadow: none;
}

.lib-tab-badge {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 8px;
}

.nav-item {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 100ms var(--ease-press);
}

.nav-item:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.nav-item:active {
  transform: scale(0.98);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.nav-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ico-color, var(--text-3));
}

.nav-ico svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.nav-label {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cnt {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 400;
}

.nav-item.active .nav-cnt {
  color: var(--accent);
  font-weight: 600;
}

.sidebar-foot {
  padding: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disk-pill {
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--bg-subtle);
}

.disk-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.disk-text {
  color: var(--text-2);
  flex: 1;
}

.disk-val {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-1);
}

.disk-path {
  margin-top: 3px;
  font-family: var(--font-num);
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.foot-btns {
  display: flex;
  gap: 6px;
}

.foot-btn {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 100ms var(--ease-press);
}

.foot-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
  flex-shrink: 0;
}

.foot-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.foot-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   右侧主列 + 吸顶命令栏
   ========================================================================== */
.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-topbar);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-center {
  flex: 1;
  min-width: 240px;
  max-width: 440px;
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-2);
  place-items: center;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.search-capsule {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 3px 4px 3px 15px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-capsule:focus-within {
  background: var(--bg-surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-1);
  font-size: 13.5px;
}

.search-input::placeholder {
  color: var(--text-3);
}

.search-clear {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text-2);
  cursor: pointer;
  margin-right: 5px;
  font-size: 13px;
}

.search-go {
  height: 30px;
  padding: 0 13px;
  border: none;
  border-radius: 99px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: filter 140ms ease, transform 100ms var(--ease-press);
}

.search-go svg {
  width: 13.5px;
  height: 13.5px;
  pointer-events: none;
}

.search-go:hover {
  filter: brightness(1.08);
}

.search-go:active {
  transform: scale(0.96);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.seg-control {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-subtle);
  gap: 2px;
}

.seg-control.sm {
  padding: 2px;
  border-radius: 7px;
}

.seg-item {
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, color 140ms ease, transform 100ms var(--ease-press);
}

.seg-control.sm .seg-item {
  height: 25px;
  padding: 0 8px;
  font-family: var(--font-num);
  font-size: 11.5px;
}

.seg-control.icon-seg .seg-item {
  width: 28px;
  padding: 0;
}

.seg-item svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.seg-item:hover {
  color: var(--text-1);
}

.seg-item:active {
  transform: scale(0.96);
}

.seg-item.active {
  background: var(--bg-surface);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .seg-item.active {
  background: var(--bg-hover);
  box-shadow: none;
}

.ctrl-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-1);
  font-size: 12.5px;
  cursor: pointer;
  outline: none;
  transition: border-color 140ms ease;
}

.ctrl-select.sm {
  height: 30px;
  border-radius: 7px;
  font-size: 12px;
}

.ctrl-select:hover {
  border-color: var(--line-strong);
}

.ctrl-select option {
  background: var(--bg-surface);
  color: var(--text-1);
}

.theme-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, transform 100ms var(--ease-press);
}

.theme-btn svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.theme-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.theme-btn:active {
  transform: scale(0.96);
}

.theme-btn .ico-sun { display: none; }
.theme-btn .ico-moon { display: block; }
[data-theme="dark"] .theme-btn .ico-sun { display: block; }
[data-theme="dark"] .theme-btn .ico-moon { display: none; }

/* ==========================================================================
   主滚动区域
   ========================================================================== */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.content-wrap {
  max-width: 1540px;
  margin: 0 auto;
  padding: 18px 24px 36px;
}

/* ==========================================================================
   融合首屏：左影院大片展台 + 右 2x2 近期上新（黄金比例，不霸屏）
   ========================================================================== */
.spotlight-section {
  margin-bottom: 20px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr);
  gap: 14px;
}

.hero-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c0e14;
  height: clamp(296px, 37vh, 368px);
  box-shadow: var(--elev-card);
  border: 1px solid var(--card-ring);
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 420ms var(--ease-out), filter 260ms ease;
}

.hero-poster.swapping {
  filter: blur(3px);
  opacity: 0.72;
}

.hero-video {
  opacity: 0;
}

.hero-video.playing {
  opacity: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0.28) 54%, rgba(8, 10, 14, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.24) 0%, transparent 40%, rgba(8, 10, 14, 0.88) 100%);
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
}

.hero-pill {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 12, 16, 0.5);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 99px;
}

.hero-ctrls {
  display: flex;
  gap: 6px;
}

.hero-ctrl-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 12, 16, 0.48);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

.hero-ctrl-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.hero-ctrl-btn:hover {
  background: rgba(10, 12, 16, 0.76);
}

.hero-ctrl-btn:active {
  transform: scale(0.93);
}

.hero-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 3;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.hero-game-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 5px;
}

.hero-meta-line {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.85vw, 25px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: filter 140ms ease, transform 100ms var(--ease-press);
}

.btn-primary svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-hero-ghost {
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-hero-ghost:active {
  transform: scale(0.97);
}

.btn-outline {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 100ms var(--ease-press);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
}

.btn-outline:active {
  transform: scale(0.97);
}

.btn-outline.sm {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 7px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.42);
  padding: 0;
  cursor: pointer;
  transition: width 220ms var(--ease-out), background-color 160ms ease;
}

.hero-dot.active {
  width: 22px;
  background: #ffffff;
}

/* 右侧 2x2 近期上新矩阵 */
.quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  height: clamp(296px, 37vh, 368px);
}

.quad-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #141720;
  cursor: pointer;
  box-shadow: var(--elev-card);
  border: 1px solid var(--card-ring);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.quad-card:active {
  transform: scale(0.985);
}

.quad-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease-out);
}

.quad-card:hover img {
  transform: scale(1.045);
}

.quad-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.16) 44%, rgba(0, 0, 0, 0.84) 100%);
}

.quad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(10, 12, 16, 0.56);
  backdrop-filter: blur(6px);
  padding: 2px 7px;
  border-radius: 5px;
}

.quad-info {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
}

.quad-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.quad-meta {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74);
}

/* ==========================================================================
   分区标题与子分类条（无多余套框，清爽留白）
   ========================================================================== */
.section-bar {
  margin-top: 6px;
  margin-bottom: 16px;
}

.section-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 11px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-count {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--text-3);
}

.reset-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0 4px;
}
.reset-link:hover {
  text-decoration: underline;
}

.section-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.section-bar-right .seg-control {
  padding: 2px;
  border-radius: 8px;
}

.section-bar-right .seg-item {
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.toggle-spot-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 100ms var(--ease-press);
}

.toggle-spot-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.toggle-spot-btn:active {
  transform: scale(0.96);
}

.cat-ribbon {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 32px 2px 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 40px), transparent 100%);
}

.cat-ribbon::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--card-ring);
  background: var(--bg-surface);
  color: var(--text-2);
  font-size: 12.5px;
  box-shadow: var(--elev-card);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 100ms var(--ease-press);
}

.cat-chip:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.cat-chip:active {
  transform: scale(0.96);
}

.cat-chip.active {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.32);
  color: var(--accent);
  font-weight: 600;
  box-shadow: none;
}

.cat-chip-n {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  opacity: 0.72;
}

/* ==========================================================================
   高密度 4 列（超宽屏 5 列）精致视频卡片墙
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}

@media (min-width: 1620px) {
  .video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.v-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--elev-card);
  border: 1px solid var(--card-ring);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms ease;
}

.v-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-card-hover);
}

[data-theme="dark"] .v-card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
}

.v-card:active {
  transform: scale(0.988);
}

.v-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
  overflow: hidden;
}

.v-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms ease, transform 340ms var(--ease-out);
}

.v-thumb.loaded {
  opacity: 1;
}

.v-card:hover .v-thumb {
  transform: scale(1.035);
}

.v-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--bg-subtle) 20%, var(--bg-hover) 40%, var(--bg-subtle) 60%);
  background-size: 200% 100%;
  animation: skel 1.4s infinite linear;
}

.v-thumb.loaded + .v-skeleton {
  display: none;
}

@keyframes skel {
  to { background-position-x: -200%; }
}

.v-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.v-preview.active {
  opacity: 1;
}

.v-cover-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.v-tag-bl {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(10, 12, 16, 0.58);
  padding: 1px 6px;
  border-radius: 4px;
}

.v-tag-br {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.v-hover-ops {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.v-card:hover .v-hover-ops,
.v-hover-ops.has-fav {
  opacity: 1;
}

.v-op-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: rgba(10, 12, 16, 0.62);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

.v-op-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.v-op-btn:hover {
  background: rgba(10, 12, 16, 0.88);
}

.v-op-btn:active {
  transform: scale(0.92);
}

.v-op-btn.favorited {
  color: #fb7185;
}
.v-op-btn.favorited svg {
  fill: #fb7185;
}

.v-info {
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.v-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
  transition: color 140ms ease;
}

.v-card:hover .v-title {
  color: var(--accent);
}

.v-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: auto;
}

.v-meta-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-game-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.v-date {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  flex-shrink: 0;
}

/* ==========================================================================
   清单列表视图
   ========================================================================== */
.list-wrap {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-card);
  border: 1px solid var(--card-ring);
  overflow-x: auto;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.list-table thead th {
  text-align: left;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.list-table tbody tr {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 120ms ease;
}

.list-table tbody tr:last-child {
  border-bottom: none;
}

.list-table tbody tr:hover {
  background: var(--bg-subtle);
}

.list-table td {
  padding: 9px 12px;
  vertical-align: middle;
}

.tbl-thumb {
  width: 84px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-subtle);
  display: block;
}

.tbl-title {
  font-weight: 500;
  color: var(--text-1);
  max-width: 440px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-sub {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-3);
  max-width: 440px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.tbl-ops {
  display: flex;
  gap: 5px;
}

.tbl-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

.tbl-icon-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.tbl-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}

.tbl-icon-btn:active {
  transform: scale(0.94);
}

.tbl-icon-btn.favorited {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.32);
}
.tbl-icon-btn.favorited svg {
  fill: #e11d48;
}

/* ==========================================================================
   空状态 / 加载更多 / 页脚
   ========================================================================== */
.empty-state {
  padding: 72px 20px;
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-card);
  border: 1px solid var(--card-ring);
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-3);
}

.load-more-bar {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.load-more-btn {
  min-width: 220px;
}

.load-more-tip {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-3);
}

.vault-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.footer-row {
  display: flex;
  align-items: center;
}

.dot-sep {
  margin: 0 7px;
}

.footer-link {
  color: var(--text-2);
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   Sora 分栏沉浸播放弹窗（带平滑 scale(0.96) 浮现动效）
   ========================================================================== */
.theater-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.theater-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.68);
  backdrop-filter: blur(12px);
}

.theater-shell {
  position: relative;
  z-index: 2;
  width: min(1480px, 100%);
  height: min(860px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 354px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--elev-modal);
  animation: modalEnter 220ms var(--ease-out);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.theater-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #000000;
}

.theater-head {
  height: 52px;
  padding: 0 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.theater-head-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.theater-game-pill {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 5px;
}

.theater-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theater-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.kbd-hint {
  font-size: 12px;
  color: var(--text-3);
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 100ms var(--ease-press);
}

.close-btn svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}

.close-btn:active {
  transform: scale(0.94);
}

.theater-video-wrap {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #000000;
}

.theater-video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: #000000;
  outline: none;
}

.theater-bar {
  min-height: 48px;
  padding: 7px 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.bar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-label {
  font-size: 12px;
  color: var(--text-3);
}

.bar-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 100ms var(--ease-press);
}

.bar-btn:hover,
.bar-btn.active {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}

.bar-btn:active {
  transform: scale(0.96);
}

.theater-side {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-left: 1px solid var(--line);
  min-height: 0;
  overflow: hidden;
}

.side-sec {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.side-heading {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.spec-item {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.spec-item .k {
  font-size: 11px;
  color: var(--text-3);
}

.spec-item .v {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.path-box {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-all;
  max-height: 54px;
  overflow-y: auto;
  margin-bottom: 9px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 8px;
}

.btn-quark {
  width: 100%;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

.btn-quark svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.btn-quark:hover {
  background: rgba(var(--accent-rgb), 0.18);
}

.btn-quark:active {
  transform: scale(0.98);
}

.side-queue {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: none;
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.q-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--bg-subtle);
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

.q-item:hover {
  background: var(--bg-hover);
}

.q-item:active {
  transform: scale(0.985);
}

.q-item.current {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.32);
}

.q-thumb {
  width: 80px;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  object-fit: cover;
  background: #141720;
  flex-shrink: 0;
}

.q-info {
  min-width: 0;
  flex: 1;
}

.q-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.q-meta {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-3);
}

/* ==========================================================================
   夸克设置弹窗 & 轻提示
   ========================================================================== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.56);
  backdrop-filter: blur(8px);
}

.dialog-panel {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--elev-modal);
  animation: modalEnter 200ms var(--ease-out);
}

.dialog-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.dialog-head p {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
}

.dialog-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-row label {
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
}

.field-input {
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-input);
  color: var(--text-1);
  font-size: 12.5px;
  outline: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.field-input:focus {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.dialog-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 9px 18px;
  border-radius: 99px;
  background: #161922;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  @starting-style {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

[data-theme="dark"] .toast {
  background: #f2f4f8;
  color: #0e1016;
}

/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 1180px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .quad-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    height: 152px;
  }
  .theater-shell {
    grid-template-columns: 1fr;
  }
  .theater-side,
  .kbd-hint {
    display: none;
  }
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 24px 0 64px rgba(0, 0, 0, 0.35);
  }
  .mobile-menu-btn {
    display: grid;
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .topbar-center {
    min-width: 0;
    max-width: none;
  }
  .lib-tab {
    padding: 0 8px;
    font-size: 12px;
  }
  .lib-tab-badge {
    display: none;
  }
  #slowmoTierFilter {
    display: none;
  }
  .content-wrap {
    padding: 14px;
  }
  .quad-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 260px;
  }
}


/* ==========================================================================
   V3.5 双馆升级：UP 主名片 / 仅看无字幕 / 热门角色胶囊 / 9:16 竖屏专区 / 三层影院
   ========================================================================== */

/* 侧栏底部 & 页脚 UP 主品牌名片 */
.up-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-1);
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 100ms var(--ease-press);
}

.up-card:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
}

.up-card:active {
  transform: scale(0.97);
}

.up-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(251, 114, 153, 0.12);
  color: #fb7299;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.up-ico svg {
  width: 16px;
  height: 16px;
}

.up-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.up-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.up-sub {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.up-inline-link {
  color: var(--text-2);
  font-weight: 500;
}

/* 仅看无字幕快捷开关（与分类筛选栏对齐） */
.clean-toggle-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 100ms var(--ease-press);
}

.clean-toggle-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.clean-toggle-btn:active {
  transform: scale(0.96);
}

.clean-toggle-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.42);
  color: #059669;
  font-weight: 600;
}

[data-theme="dark"] .clean-toggle-btn.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
}

/* 首屏焦点规格标 */
.hero-spec-tag {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.85);
  padding: 2px 8px;
  border-radius: 5px;
}

/* 卡片低调状态徽标 */
.v-sub-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  flex-shrink: 0;
}

.v-sub-badge.bili {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

[data-theme="dark"] .v-sub-badge.bili {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.v-sub-badge.clean {
  background: var(--bg-subtle);
  color: var(--text-2);
}

.v-sub-badge.subtitled {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

[data-theme="dark"] .v-sub-badge.subtitled {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.v-tag-play {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.88);
  backdrop-filter: blur(6px);
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.v-tag-play.bili {
  background: rgba(236, 72, 153, 0.88);
}

.v-fallback-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(var(--fb-rgb, 37, 99, 235), 0.16) 0%, var(--bg-subtle) 100%);
}

.v-fallback-game {
  font-size: 11px;
  font-weight: 600;
  color: var(--fb-hex, var(--accent));
  margin-bottom: 4px;
}

.v-fallback-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 大招慢放馆：热门角色快选胶囊栏 */
.char-ribbon-wrap {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.char-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.char-chip {
  height: 27px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 100ms var(--ease-press);
}

.char-chip:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.char-chip:active {
  transform: scale(0.96);
}

.char-chip.active {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
  font-weight: 600;
}

.char-chip-n {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  opacity: 0.72;
}

.char-expand-btn {
  height: 27px;
  padding: 0 11px;
  border-radius: 99px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.char-expand-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

/* 9:16 竖屏慢放独立专区 */
.vertical-showcase {
  margin-bottom: 22px;
  padding: 14px 16px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--card-ring);
  box-shadow: var(--elev-card);
}

.vertical-showcase-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.vertical-title-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.vertical-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-1);
}

.vertical-tip {
  font-size: 12px;
  color: var(--text-3);
}

.vertical-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.vertical-strip .v-card-vertical {
  flex: 0 0 184px;
}

.v-card-vertical .v-cover-wrap {
  aspect-ratio: 9 / 15;
}

.video-grid.vertical-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (min-width: 1620px) {
  .video-grid.vertical-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .video-grid.vertical-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .video-grid.vertical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vertical-strip .v-card-vertical {
    flex: 0 0 150px;
  }
}

/* 公网顶栏夸克按钮 & 影院三层播放容器 */
.quark-banner-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 140ms ease, transform 100ms var(--ease-press);
}

.quark-banner-btn svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.quark-banner-btn:hover {
  filter: brightness(1.08);
}

.quark-banner-btn:active {
  transform: scale(0.97);
}

.theater-video-wrap {
  position: relative;
}

.bili-player-wrap {
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bili-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

.public-fallback-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #090b10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.public-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #06070a;
}

.public-stage-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.public-cta-big {
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  transition: filter 140ms ease, transform 100ms var(--ease-press);
}

.public-cta-big svg {
  width: 18px;
  height: 18px;
}

.public-cta-big:hover {
  filter: brightness(1.08);
}

.public-cta-big:active {
  transform: scale(0.97);
}

.public-sub-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.public-stage-tip {
  max-width: 480px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 12, 16, 0.64);
  backdrop-filter: blur(10px);
  padding: 7px 14px;
  border-radius: 99px;
}

.sub-notice-strip {
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.12);
  border-top: 1px solid rgba(245, 158, 11, 0.24);
  color: #b45309;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

[data-theme="dark"] .sub-notice-strip {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.preview-source-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.14);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

[data-theme="dark"] .preview-source-pill {
  color: #34d399;
}

.preview-source-pill.warn {
  color: #b45309;
  background: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .preview-source-pill.warn {
  color: #fbbf24;
}

.bar-bili-btn {
  display: inline-flex;
  align-items: center;
  color: #db2777;
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.28);
  font-weight: 600;
}

[data-theme="dark"] .bar-bili-btn {
  color: #f472b6;
}

.bar-quark-full {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

.bar-quark-full:hover {
  background: rgba(var(--accent-rgb), 0.18);
}

.bar-quark-full:active {
  transform: scale(0.97);
}

.bar-quark-upgrade {
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: filter 140ms ease, transform 100ms var(--ease-press);
}

.bar-quark-upgrade:hover {
  filter: brightness(1.08);
}

.bar-quark-upgrade:active {
  transform: scale(0.97);
}

/* 侧栏 B 站跳转按钮 & 跨馆联动卡片 */
.btn-bili-side {
  width: 100%;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 9px;
  border: 1px solid rgba(236, 72, 153, 0.32);
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

[data-theme="dark"] .btn-bili-side {
  color: #f472b6;
}

.btn-bili-side svg {
  width: 15px;
  height: 15px;
}

.btn-bili-side:hover {
  background: rgba(236, 72, 153, 0.18);
}

.btn-bili-side:active {
  transform: scale(0.98);
}

.cross-link-card {
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: var(--accent-soft);
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms var(--ease-press);
}

.cross-link-card:hover {
  background: rgba(var(--accent-rgb), 0.18);
}

.cross-link-card:active {
  transform: scale(0.985);
}

.cross-link-thumb {
  width: 72px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: #141720;
  flex-shrink: 0;
}

.cross-link-body {
  min-width: 0;
  flex: 1;
}

.cross-link-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.cross-link-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cross-link-meta {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-3);
}
