[v-cloak] {
  display: none !important;
}

body.cinema .sidebar {
  display: none !important;
}

body.cinema .app {
  grid-template-columns: 1fr !important;
}

body.cinema #heroToolsBtn {
  display: none !important;
}

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d9e0ea;
  --brand: #126d74;
  --brand-2: #df6b3f;
  --soft: #e9f6f5;
  --danger: #a33b2f;
  --shadow: 0 12px 32px rgba(31, 41, 55, 0.10);
  --cinema-pc-nav-max: 1200px;
  --cinema-pc-content-max: 1120px;
  --cinema-pc-hero-max: 1120px;
  --cinema-pc-search-max: 960px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"],
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fbfcfe;
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 22px;
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 109, 116, 0.14);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.btn {
  min-height: 42px;
  border-radius: 7px;
  background: var(--brand);
  color: white;
  font-weight: 700;
}

.btn.secondary {
  background: #e7ecf2;
  color: #263241;
}

.btn.warn {
  background: var(--brand-2);
}

.hint {
  border: 1px solid #f0c895;
  background: #fff8ea;
  color: #5c3b05;
  border-radius: 7px;
  padding: 11px;
  font-size: 13px;
  line-height: 1.55;
}

.main {
  min-width: 0;
  padding: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  padding: 4px 10px;
  font-weight: 700;
  font-size: 13px;
}

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

.page-btn {
  min-width: 40px;
  min-height: 36px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.04);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.poster {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: #dfe6ee;
  display: block;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.title {
  font-weight: 800;
  line-height: 1.35;
  min-height: 38px;
  word-break: break-word;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.small-btn {
  min-height: 36px;
  border-radius: 7px;
  background: #edf1f6;
  color: #223044;
  font-weight: 700;
  font-size: 13px;
}

.small-btn.primary {
  background: var(--brand);
  color: white;
}

.drawer {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(15, 23, 42, 0.52);
  padding: 22px;
  z-index: 10;
}

.drawer.open {
  display: grid;
  place-items: center;
}

.player-drawer {
  z-index: 20;
}

.resource-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.52);
}

.resource-modal.open {
  display: flex;
}

.resource-modal-card {
  position: relative;
  width: min(94vw, 420px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  color: #172033;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  scrollbar-width: none;
}

.resource-modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.resource-poster-stage {
  position: relative;
  height: 250px;
  margin-bottom: -56px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #eef2f7;
}

.resource-poster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(18px);
  transform: scale(1.08);
}

.resource-poster-main {
  position: relative;
  z-index: 1;
  display: block;
  width: min(72%, 300px);
  max-height: 220px;
  margin: 24px auto 68px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.resource-poster-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 132px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.58) 58%, rgba(255,255,255,0.96) 100%);
  pointer-events: none;
}

.resource-modal-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.resource-modal-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  display: none;
}

.resource-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.95);
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
  pointer-events: auto;
}

.resource-modal-body {
  margin: 0 16px 16px;
  padding: 18px;
  position: relative;
  z-index: 3;
  border-radius: 18px;
  background: #fff;
}

.resource-modal.has-poster .resource-modal-body {
  padding-top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 34px, #fff 34px, #fff 100%);
}

.resource-modal:not(.has-poster) .resource-modal-body {
  margin-top: 46px;
}

.resource-dialog-title-block {
  position: relative;
  margin: -4px -2px 14px;
  padding: 12px 14px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(248, 251, 255, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.resource-modal.has-poster .resource-dialog-title-block {
  margin-top: -26px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.56), rgba(248,251,255,0.36));
  border-color: rgba(255,255,255,0.62);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.resource-dialog-title-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #2563eb, #60a5fa);
  border-radius: 999px;
  opacity: 0.85;
}

.resource-dialog-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.resource-dialog-title.is-long {
  text-align: left;
}

.resource-dialog-title::after {
  content: none;
}

.resource-modal-loading,
.resource-modal-error {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #8a95a5;
  font-weight: 800;
  text-align: center;
}

.resource-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px 4px 4px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.resource-loading-panel-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.resource-loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dbeafe;
  border-top-color: #409eff;
  border-radius: 50%;
  animation: resourceLoadingSpin 0.85s linear infinite;
}

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

.resource-loading-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  color: #409eff;
}

.resource-loading-tips {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #303133;
}

.resource-loading-notice {
  width: 100%;
  max-width: 100%;
  padding-top: 16px;
  border-top: 1px dashed #d1d5db;
  color: #64748b;
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
}

.resource-modal-body .resource-loading-notice {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.resource-loading-notice p {
  margin: 0;
}

.resource-loading-notice p + p {
  margin-top: 8px;
}

.resource-loading-notice-icon {
  margin-right: 4px;
}

.search-result-list > .resource-loading-panel {
  margin: 8px 0 4px;
  padding: 18px 14px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.resource-modal-body .resource-loading-panel {
  min-height: 180px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.resource-modal-error {
  color: #dc2626;
}

.resource-link-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  padding: 16px 14px;
}

.resource-link-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.resource-link-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.resource-link-name {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 900;
}

.resource-link-url {
  display: block;
  color: #075fe5;
  font-size: 16px;
  line-height: 1.5;
  word-break: break-all;
  text-decoration: none;
}

.resource-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.resource-modal-actions button,
.resource-modal-actions a {
  min-height: 46px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 900;
  text-decoration: none;
}

.resource-dialog-tree-toggle.is-loading {
  color: #64748b;
  cursor: wait;
  background: #f8fafc;
}

.resource-modal-copy {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #3f3f46;
}

.resource-modal-open {
  background: #f8fbff;
  border: 1px solid #2563eb;
  color: #0047d8;
}

.resource-modal-qr {
  margin-top: 16px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: #fbfbfc;
  text-align: center;
}

.resource-modal-qr-title {
  color: #172033;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
}

.resource-modal-qr-tips {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.resource-modal-qrcode {
  margin: 14px auto 0;
  width: 132px;
  height: 132px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.resource-modal-qrcode canvas {
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
}

@media (min-width: 721px) {
  .resource-modal {
    padding: 24px;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .resource-modal-card {
    width: min(92vw, 580px);
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    animation: resourceModalPop 0.28s ease;
  }

  @keyframes resourceModalPop {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .resource-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 156px;
    column-gap: 18px;
    row-gap: 14px;
    align-items: start;
    margin: 0 20px 20px;
    padding: 20px 22px 22px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .resource-modal-body:has(.resource-loading-panel),
  .resource-modal-body:has(.resource-modal-loading),
  .resource-modal-body:has(.resource-modal-error) {
    grid-template-columns: 1fr;
    place-items: center;
    justify-items: center;
    text-align: center;
  }

  .resource-modal-body:has(.resource-loading-panel) .resource-loading-panel,
  .resource-modal-body:has(.resource-modal-loading),
  .resource-modal-body:has(.resource-modal-error) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  .resource-modal:not(.has-poster) .resource-modal-body {
    margin-top: 52px;
  }

  .resource-dialog-title-block {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px 16px 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: none;
  }

  .resource-modal.has-poster .resource-dialog-title-block {
    margin-top: -26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 251, 255, 0.56));
  }

  .resource-dialog-title-block::before {
    width: 4px;
  }

  .resource-dialog-title {
    font-size: 19px;
    letter-spacing: -0.01em;
  }

  .resource-link-card {
    grid-column: 1;
    grid-row: 2;
    padding: 18px 16px;
    border-radius: 16px;
    border-color: #dbeafe;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
  }

  .resource-modal-body:not(:has(.resource-modal-qr)) .resource-link-card {
    grid-column: 1 / -1;
  }

  .resource-link-icon {
    width: 42px;
    height: 42px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  }

  .resource-link-name {
    font-size: 16px;
    color: #0f172a;
  }

  .resource-link-url {
    font-size: 14px;
    margin-top: 2px;
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .resource-modal-actions {
    margin-top: 16px;
    gap: 12px;
  }

  .resource-modal-actions button,
  .resource-modal-actions a {
    min-height: 44px;
    border-radius: 12px;
    font-size: 15px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }

  .resource-modal-actions button:hover,
  .resource-modal-actions a:hover {
    transform: translateY(-1px);
  }

  .resource-modal-copy:hover {
    background: #f8fafc;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }

  .resource-modal-open {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  }

  .resource-modal-open:hover {
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
  }

  .resource-modal-qr {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }

  .resource-modal-qr-title {
    font-size: 13px;
    line-height: 1.35;
  }

  .resource-modal-qr-tips {
    margin-top: 4px;
    font-size: 11px;
  }

  .resource-modal-qrcode {
    width: 120px;
    height: 120px;
    margin-top: 10px;
    border-radius: 12px;
  }

  .resource-dialog-tree-toggle,
  .resource-tree-panel,
  .resource-notice-card {
    grid-column: 1 / -1;
  }

  .resource-dialog-tree-toggle {
    margin-top: 0;
    min-height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    border-color: #e2e8f0;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .resource-dialog-tree-toggle:hover:not(:disabled):not(.is-loading) {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }

  .resource-tree-panel {
    margin-top: 0;
    border-radius: 12px;
  }

  .resource-notice-card {
    margin-top: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border-color: #eef2f7;
    font-size: 11px;
    line-height: 1.65;
  }

  .resource-modal-close {
    width: 36px;
    height: 36px;
    transition: background 0.15s ease, transform 0.15s ease;
  }

  .resource-modal-close:hover {
    background: #fff;
    transform: scale(1.05);
  }
}

@media (max-width: 720px) {
  .resource-modal-qr {
    display: none !important;
  }
}

.resource-notice-card {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.resource-notice-card p {
  margin: 0;
}

.resource-notice-card p + p {
  margin-top: 6px;
}

.home-announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.home-announcement-overlay.open {
  display: flex;
}

.home-announcement-dialog {
  width: min(320px, 100%);
  max-height: min(78vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  animation: announcementPop 0.32s cubic-bezier(0.2, 0.9, 0.2, 1.08);
}

.home-announcement-head {
  padding: 21px 18px 6px;
  background: transparent;
  color: #111827;
  text-align: center;
}

.home-announcement-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.home-announcement-subtitle {
  display: none;
  margin-top: 3px;
  font-size: 12px;
  color: #8e8e93;
  font-weight: 600;
}

.home-announcement-content {
  min-height: 0;
  max-height: min(48vh, 380px);
  overflow: hidden;
  padding: 8px 18px 20px;
  color: #3f4550;
  text-align: center;
  line-height: 1.55;
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.home-announcement-content.is-scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.home-announcement-content p {
  margin: 8px 0;
}

.home-announcement-content p:last-child {
  margin-bottom: 0;
}

.home-announcement-content [onclick*="copyToClipboard"],
.home-announcement-content [onclick*="navigator.clipboard.writeText"],
.home-announcement-content [data-copy] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-announcement-content .copied {
  filter: saturate(1.15);
  transform: scale(0.98) !important;
  opacity: 0.9;
}

.home-announcement-actions {
  display: flex;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border-top: 0.5px solid rgba(60, 60, 67, 0.20);
}

.home-announcement-actions.has-secondary {
  grid-template-columns: none;
}

.home-announcement-btn {
  flex: 1 1 0;
  min-height: 45px;
  border-radius: 0;
  background: transparent;
  color: #007aff;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.16s ease;
}

.home-announcement-btn + .home-announcement-btn {
  border-left: 0.5px solid rgba(60, 60, 67, 0.20);
}

.home-announcement-btn.primary {
  background: transparent;
  color: #007aff;
  box-shadow: none;
  font-weight: 600;
}

.home-announcement-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

@keyframes announcementPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .resource-modal {
    align-items: end;
    padding: 0;
  }

  .resource-modal-card {
    width: 100%;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
  }

  .resource-poster-stage {
    height: 360px;
    margin-bottom: -86px;
    border-radius: 18px 18px 0 0;
  }

  .resource-poster-main {
    width: min(72%, 280px);
    max-height: 320px;
    margin-top: 34px;
  }

  .resource-modal-body {
    margin: 0 14px 16px;
    padding: 18px;
  }

  .resource-modal.has-poster .resource-modal-body {
    padding-top: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 42px, #fff 42px, #fff 100%);
  }

  .resource-modal.has-poster .resource-dialog-title-block {
    margin-top: -36px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.52), rgba(248,251,255,0.32));
  }

  .resource-link-card {
    padding: 14px 12px;
  }

  .resource-link-main {
    gap: 10px;
  }

  .resource-link-icon {
    width: 32px;
    height: 32px;
  }

  .resource-link-name {
    font-size: 14px;
  }

  .resource-link-url {
    font-size: 14px;
    line-height: 1.45;
  }

  .resource-modal-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .resource-modal-actions button,
  .resource-modal-actions a {
    min-height: 40px;
    border-radius: 8px;
    font-size: 14px;
  }

  .resource-dialog-tree-toggle {
    min-height: 42px;
    font-size: 14px;
  }
}

.detail {
  width: min(980px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.detail-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.close {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: #eef2f7;
  color: #1f2937;
  font-size: 22px;
  line-height: 1;
}

.player {
  width: min(1120px, 100%);
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-frame {
  display: block;
  width: 100%;
  height: min(68vh, 680px);
  min-height: 360px;
  border: 0;
  background: #0f172a;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.detail-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.detail-body img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #dfe6ee;
}

.content {
  min-width: 0;
}

.content p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.episodes {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.source-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.source-title {
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--brand);
}

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

.episode {
  min-height: 36px;
  border-radius: 7px;
  background: white;
  border: 1px solid var(--line);
  color: #263241;
  padding: 8px;
  overflow-wrap: anywhere;
  text-align: left;
}

.empty {
  border: 1px dashed var(--line);
  background: white;
  border-radius: 8px;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.error {
  border-color: #efb2a9;
  background: #fff1ef;
  color: var(--danger);
}

body.cinema {
  background:
    radial-gradient(circle at top left, rgba(24, 183, 166, 0.22), transparent 30rem),
    radial-gradient(circle at 80% 0%, rgba(242, 111, 70, 0.14), transparent 26rem),
    #090d14;
  color: #edf3ff;
}

body.cinema .sidebar {
  background: rgba(9, 13, 20, 0.86);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.10);
}

body.cinema .brand-mark {
  background: linear-gradient(135deg, #18b7a6, #3f7cff);
}

body.cinema .field input,
body.cinema .field select,
body.cinema .field textarea,
body.cinema .page-btn,
body.cinema .empty {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  color: #edf3ff;
}

body.cinema .btn.secondary,
body.cinema .small-btn {
  background: rgba(255, 255, 255, 0.10);
  color: #edf3ff;
}

body.cinema .hint {
  background: rgba(242, 111, 70, 0.10);
  color: #ffd0bf;
  border-color: rgba(242, 111, 70, 0.35);
}

.hero {
  --hero-image: url("https://www.laisoso.com/views/index/news/common/static/images/photo-1489599849927-2ee91cede3ba.webp");
  min-height: min(900px, 88vh);
  border: 0;
  border-radius: 0;
  padding: 0 clamp(24px, 8vw, 160px) 120px;
  margin-bottom: 46px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(245, 247, 251, 0.98) 92%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.58) 48%, rgba(255, 255, 255, 0.10) 100%),
    var(--hero-image) center/cover;
  display: grid;
  align-content: end;
  color: #0d1118;
  box-shadow: none;
  touch-action: pan-y;
  cursor: grab;
}

.hero:active {
  cursor: grabbing;
}

.hero h1,
.hero h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  color: #05070a;
}

.hero p {
  margin: 12px 0 0;
  max-width: 650px;
  color: #273244;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.banner-thumbs {
  display: flex;
  gap: 14px;
  margin-top: 82px;
}

.banner-thumb {
  width: 148px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background-size: cover;
  background-position: center;
  color: white;
  display: grid;
  align-content: end;
  padding: 8px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0.72;
}

.banner-thumb.active {
  opacity: 1;
  border-color: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.banner-dots {
  display: none;
  position: absolute;
  right: 16px;
  bottom: 14px;
  gap: 6px;
}

.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.banner-dot.active {
  width: 24px;
  background: white;
}

.hero-search-btn {
  min-height: 58px;
  border-radius: 999px;
  background: #050505;
  color: white;
  padding: 0 34px;
  font-weight: 900;
  font-size: 17px;
}

.hero-ghost-btn {
  min-height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #172033;
  padding: 0 26px;
  font-weight: 900;
}

.feature-cards {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  margin: -98px auto 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 2;
}

.feature-card {
  min-height: 118px;
  border-radius: 8px;
  padding: 22px;
  display: grid;
  align-content: end;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #3b6cff, #58c7ff);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.16);
  position: relative;
  text-align: left;
}

.feature-card.feature-blue {
  background:
    linear-gradient(135deg, rgba(84, 76, 255, 0.18), rgba(24, 183, 255, 0.08)),
    url("/views/index/news/common/static/mac/vajra-bg.jpg") center/cover;
  background-color: #2f7dff;
}

.feature-card.feature-blue.is-night {
  background:
    linear-gradient(135deg, rgba(84, 76, 255, 0.12), rgba(24, 183, 255, 0.06)),
    url("/views/index/news/common/static/mac/vajra-bg.jpg") center/cover;
}

.feature-card.feature-blue:not(.is-night) {
  background:
    linear-gradient(135deg, rgba(84, 76, 255, 0.14), rgba(24, 183, 255, 0.05)),
    url("/views/index/news/common/static/mac/vajra-bg.jpg") center/cover;
}

.feature-card.feature-blue.fallback {
  background:
    linear-gradient(135deg, #544cff 0%, #18b7ff 100%);
}

.feature-card.feature-blue::before {
  content: none;
}

.feature-card.feature-blue::after {
  content: none;
}

.feature-card.feature-orange {
  background: linear-gradient(135deg, #ff8a36, #ffd27a);
}

.feature-card.feature-purple {
  background: linear-gradient(135deg, #7957ff, #5fc1ff);
}

.feature-card i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 23px;
  font-weight: 900;
}

.feature-card i img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.feature-card.feature-purple i {
  border-radius: 0;
  background: transparent;
}

.feature-card strong {
  font-size: 22px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.feature-card span {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.continue-watch {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  min-height: 52px;
  margin: 0 auto 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #8a95a5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  font-weight: 800;
}

.continue-watch span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-watch button {
  background: transparent;
  color: #8a95a5;
  font-size: 28px;
  line-height: 1;
}

.discover-more,
.section-title-row,
.load-more-wrap,
.site-footer {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  margin-left: auto;
  margin-right: auto;
}

.discover-more {
  display: grid;
  gap: 18px;
  margin-bottom: 46px;
  color: #111827;
}

.discover-more h3,
.section-title-row h3 {
  margin: 0;
  font-size: 26px;
  color: #111827;
}

.discover-links {
  display: flex;
  gap: 18px;
}

.discover-links button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 22px;
  background: white;
  color: #5b6575;
  font-weight: 900;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.refresh-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  padding: 0;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 21px;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.refresh-btn:hover,
.refresh-btn:focus-visible {
  background: rgba(23, 105, 255, 0.08);
  color: #1769ff;
  box-shadow: 0 8px 18px rgba(23, 105, 255, 0.12);
}

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

.refresh-btn.spin {
  color: #1769ff;
  pointer-events: none;
  background: rgba(23, 105, 255, 0.10);
}

.refresh-btn .refresh-icon {
  display: grid;
  place-items: center;
  transform-origin: center;
  line-height: 1;
}

.refresh-btn .refresh-icon img {
  width: 21px;
  height: 21px;
  display: block;
}

.refresh-btn.spin .refresh-icon {
  animation: pulseSpin 0.7s linear infinite;
}

.refresh-btn.bump .refresh-icon {
  animation: switchBump 0.32s ease;
}

@keyframes pulseSpin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes switchBump {
  0% { transform: rotate(0) scale(1); }
  55% { transform: rotate(110deg) scale(1.12); }
  100% { transform: rotate(180deg) scale(1); }
}

.load-more-wrap {
  display: none;
}

.ranking-load-hint {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  margin: 12px auto 4px;
  text-align: center;
  color: #7d889a;
  font-size: 13px;
  font-weight: 700;
  min-height: 1.2em;
}

.home-bottom-loader {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  min-height: 96px;
  margin: 8px auto 0;
  display: none;
  place-items: center;
  color: #7d889a;
  font-weight: 800;
}

.home-bottom-loader.show {
  display: grid;
}

.home-bottom-loader-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-bottom-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(125, 136, 154, 0.28);
  border-top-color: #1e63ff;
  animation: bottomSpin 0.75s linear infinite;
}

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

.load-more-btn {
  min-width: 148px;
  min-height: 46px;
  border-radius: 999px;
  background: white;
  color: #647085;
  font-weight: 900;
}

.site-footer {
  text-align: center;
  color: #a7b0bf;
  padding: 120px 0 32px;
  line-height: 1.8;
  font-weight: 700;
}

.search-page {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #f5f7fb;
  color: #172033;
}

body.search-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.search-page.open {
  display: flex;
}

.search-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #f5f7fb;
}

.search-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: #172033;
  font-size: 30px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.search-input-wrap {
  flex: 1;
  height: 42px;
  border-radius: 999px;
  background: #e9edf3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-width: 0;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 15px;
}

.search-submit {
  background: transparent;
  color: #172033;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-suggestions {
  display: none;
  width: min(calc(100% - 148px), 600px);
  margin: 0 84px 10px 64px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
}

.mobile-suggestions.open {
  display: grid;
  gap: 3px;
}

.mobile-suggestion-item,
.mobile-suggestion-status {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  background: transparent;
}

.mobile-suggestion-item:active,
.mobile-suggestion-item.active {
  background: #eef4ff;
  color: #1769ff;
}

.mobile-suggestion-status {
  color: #94a3b8;
}

.mobile-suggestion-highlight {
  color: #1769ff;
}

.search-body,
.search-result {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.search-result {
  display: none;
  flex-direction: column;
}

.search-result.is-empty {
  overflow-y: hidden;
}

.search-result.is-empty .search-result-list {
  flex: 1;
  min-height: 0;
}

.search-section {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-sec-head,
.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.search-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 900;
}

.search-sec-title-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.search-sec-action,
.search-sec-extra,
.result-back {
  color: #8a95a5;
  background: transparent;
  font-weight: 800;
}

.history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-chip {
  min-height: 34px;
  border-radius: 999px;
  background: #e9edf3;
  color: #172033;
  padding: 0 14px;
  font-weight: 800;
}

.history-chip.active {
  background: #1769ff;
  color: #fff;
}

.search-toast {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  display: none;
}

.search-toast.show {
  display: block;
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
  background: transparent;
  color: #172033;
}

.hot-rank {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #e4e9ef;
  color: #7c8794;
  font-size: 13px;
  font-weight: 900;
}

.hot-rank.top {
  color: #fff;
  background: linear-gradient(135deg, #ffc93d, #ff982d);
}

.hot-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.guess-cats {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
}

.guess-cats::-webkit-scrollbar {
  display: none;
}

.guess-cat,
.guess-refresh {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: #7c8794;
  font-weight: 900;
  white-space: nowrap;
}

.guess-cat.active {
  background: #1769ff;
  color: white;
}

.result-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  padding: 14px 18px 0;
  margin: 0;
  background: #f5f7fb;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding-left: 12px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 800;
}

.result-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: #1769ff;
}

.result-keyword {
  color: #1769ff;
  font-size: 17px;
  font-weight: 900;
}

.result-count {
  color: #8a95a5;
  font-weight: 700;
}

.result-count.is-searching,
.search-result-list > .empty.is-searching {
  animation: mofaSearchLoadingBlink 1.15s ease-in-out infinite;
}

@keyframes mofaSearchLoadingBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.result-pan-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.result-pan-tabs::-webkit-scrollbar {
  display: none;
}

.result-pan-tab {
  position: relative;
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  color: #4b5563;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.result-pan-tab.active {
  color: #075fe5;
}

.result-pan-tab.loading:not(.active) {
  color: #9aa4b2;
}

.result-pan-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #1769ff;
}

.search-result-grid,
.search-guess-grid {
  width: auto;
  margin: 0;
  padding: 0 18px 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.search-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 18px;
  background: #f3f4f6;
}

.search-status-line {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 105, 255, 0.08);
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.search-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1769ff;
  animation: statusPulse 0.9s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.search-empty-state {
  min-height: 210px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8a95a5;
  padding: 24px;
}

.search-empty-state strong {
  display: block;
  color: #172033;
  font-size: 17px;
  margin-bottom: 6px;
}

.search-resource-card {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  background: #fff;
  padding: 14px 14px 16px;
  box-shadow: none;
}

.search-resource-title {
  position: relative;
  display: block;
  width: 100%;
  padding-left: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  background: transparent;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
  word-break: break-word;
}

.search-resource-title-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  max-height: 2.7em;
}

.search-local-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-right: 6px;
  padding: 0 7px;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  font-size: 11px;
  line-height: 20px;
  font-weight: 900;
  vertical-align: 2px;
}

.search-resource-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: #ff4d4f;
}

.search-highlight {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.10);
  border-radius: 3px;
  padding: 0 2px;
}

.keyword-highlight {
  color: #f56c6c;
  font-weight: 900;
  background: rgba(245, 108, 108, 0.12);
  padding: 0 2px;
  border-radius: 2px;
}

.search-resource-meta {
  margin-top: 8px;
  color: #8a95a5;
  font-size: 12px;
  line-height: 1.5;
}

.search-resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.search-pan-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  color: #8a95a5;
  font-size: 12px;
  font-weight: 800;
}

.search-card-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.search-source-tags,
.search-verify-tags,
.search-result-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.search-source-tags .t,
.search-verify-tags .t,
.search-result-tags .t {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}

.search-source-tags .t-net {
  color: #666;
  border-color: #ececec;
  background: #f3f3f3;
}

.search-source-tags .t-pan {
  color: #444;
  border-color: #e5e7eb;
  background: #fff;
}

.search-result-tags .t-net {
  color: #666;
  border-color: #ececec;
  background: #f3f3f3;
}

.search-result-tags .t-pan {
  color: #444;
  border-color: #e5e7eb;
  background: #fff;
}

.search-result-tags .t-ok {
  color: #2e7d32;
  border-color: #c8e6c9;
  background: #f1f8e9;
}

.search-result-tags .t-bad {
  color: #c62828;
  border-color: #ffcdd2;
  background: #ffebee;
}

.search-result-tags .t-warn {
  color: #e65100;
  border-color: #ffe0b2;
  background: #fff8e1;
}

.search-result-tags .t-local,
.search-source-tags .t-local,
.search-verify-tags .t-local {
  color: #fff;
  border-color: #1769ff;
  background: #1769ff;
  font-weight: 600;
}

.search-result-tags .t-time {
  color: #8a95a5;
  border-color: #eceff3;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
}

.search-verify-inline {
  display: contents;
}

@media (max-width: 860px) {
  .search-tag-mobile-hide {
    display: none !important;
  }

  .search-verify-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .search-verify-inline .t-ok,
  .search-verify-inline .t-bad,
  .search-verify-inline .t-warn {
    flex: 0 0 auto;
  }

  .search-verify-inline .t-time {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-pan-meta {
    align-items: center;
  }

  .search-card-tags {
    flex-direction: row;
    align-items: center;
  }
}

.search-pan-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 auto;
}

.search-verify-tags .t-ok {
  color: #2e7d32;
  border-color: #c8e6c9;
  background: #f1f8e9;
}

.search-verify-tags .t-bad {
  color: #c62828;
  border-color: #ffcdd2;
  background: #ffebee;
}

.search-verify-tags .t-warn {
  color: #e65100;
  border-color: #ffe0b2;
  background: #fff8e1;
}

.search-verify-tags .t-time {
  color: #8a95a5;
  border-color: #eceff3;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
}

.search-get-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.search-result-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.search-result-actions button {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 900;
}

.search-tree-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.search-get-btn {
  background: #fff;
  border: 1px solid #2563eb;
  color: #0047d8;
}

.search-tree-panel,
.resource-tree-panel {
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.search-tree-head,
.resource-tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.search-tree-head em,
.resource-tree-head em {
  color: #8a95a5;
  font-style: normal;
  font-weight: 700;
}

.search-tree-body,
.resource-tree-body {
  max-height: 240px;
  overflow: auto;
  padding: 6px 0;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 12px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.35;
}

.tree-row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-row-size {
  color: #9ca3af;
  font-size: 12px;
  flex: 0 0 auto;
}

.tree-tip {
  padding: 10px 12px;
  color: #8a95a5;
  font-size: 13px;
  line-height: 1.5;
}

.tree-tip.error {
  color: #dc2626;
  background: #fff1f2;
}

.tree-error-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff1f2;
}

.tree-error-row .tree-tip.error {
  flex: 1 1 auto;
  padding: 0;
  background: transparent;
}

.search-tree-retry-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.search-tree-retry-btn:hover {
  border-color: var(--theme-theme, #1769ff);
  color: var(--theme-theme, #1769ff);
}

.tree-tip.empty {
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

.tree-tip.more {
  color: #2563eb;
  background: #f8fbff;
  border-top: 1px solid #eef2f7;
}

.search-tree-lines,
.resource-tree-lines {
  max-height: 320px;
  overflow: auto;
  padding: 8px 12px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.tree-line-row {
  padding: 2px 0;
}

.resource-dialog-tree-toggle {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #334155;
  font-weight: 900;
  text-align: left;
  padding: 0 14px;
}

.search-page .card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.search-page .poster {
  border-radius: 8px;
}

.search-page .card-body {
  padding: 8px 2px 0;
}

.search-page .card-actions {
  display: none;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick-cats::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: #edf3ff;
  font-weight: 700;
}

.cat-chip.active {
  background: #1769ff;
  color: #fff;
}

.cat-chip.loading {
  opacity: 0.72;
  cursor: wait;
}

.home-sections {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}

.shelf {
  display: grid;
  gap: 12px;
}

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shelf-head h3 {
  margin: 0;
  font-size: 22px;
}

.shelf-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 190px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

body.cinema .card {
  background: rgba(17, 24, 39, 0.88);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

body.cinema .card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 183, 166, 0.45);
}

.ranking-card {
  position: relative;
  cursor: pointer;
}

.ranking-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #e8edf3 0%, #f4f7fb 100%);
}

.ranking-card-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1.4;
  z-index: 0;
}

.ranking-card-ph span {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-card-media .poster {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  background: transparent;
}

.ranking-card-media .poster.is-broken {
  opacity: 0;
}

.ranking-card-media .rank-badge {
  z-index: 2;
}

.ranking-card .ranking-card-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.lazy-image {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.015);
  transition: opacity 0.38s ease, filter 0.38s ease, transform 0.38s ease;
}

.lazy-image.loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 24px;
  border-radius: 8px 0 8px 0;
  background: #f2604d;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  z-index: 2;
}

body.cinema .poster,
body.cinema .detail-body img {
  background: #202b3d;
}

body.cinema .detail,
body.cinema .player {
  background: #0f172a;
  color: #edf3ff;
}

body.cinema .drawer {
  align-items: end;
  justify-items: center;
  padding: 0;
}

body.cinema .drawer.open {
  display: grid;
}

body.cinema .detail,
body.cinema .player {
  width: min(100%, 720px);
  max-height: 88vh;
  border-radius: 16px 16px 0 0;
  animation: drawerUp 0.24s ease;
}

@keyframes drawerUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

body.cinema .player {
  width: min(100%, 920px);
}

body.cinema .source-block,
body.cinema .episode {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  color: #edf3ff;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 420px) auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(24px, 7vw, 140px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  color: #121826;
}

.desktop-nav-actions {
  display: none;
}

.logo-button,
.nav-link,
.desktop-nav-btn,
.icon-btn,
.tab {
  border: 0;
  background: transparent;
  color: inherit;
}

a.logo-button,
a.nav-link,
a.desktop-nav-btn {
  text-decoration: none;
  cursor: pointer;
}

.logo-button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 800;
}

.logo-image {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.logo-button small {
  display: block;
  color: #5f6876;
  font-size: 11px;
  margin-top: 2px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ff6b35;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-link {
  font-size: 16px;
  opacity: 0.72;
}

.nav-link.active {
  opacity: 1;
}

.top-search {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(239, 242, 248, 0.88);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 18px;
  color: #7d8797;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.top-search-wrap {
  position: relative;
  min-width: 0;
}

.top-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 35;
  display: none;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.top-suggestions.open {
  display: grid;
  gap: 3px;
}

.top-suggestion-item,
.top-suggestion-status {
  min-height: 38px;
  border-radius: 11px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  background: transparent;
}

.top-suggestion-item:hover,
.top-suggestion-item.active {
  background: #eef4ff;
  color: #1769ff;
}

.top-suggestion-status {
  color: #94a3b8;
  cursor: default;
}

.top-suggestion-highlight {
  color: #1769ff;
}

.search-icon-img {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.92;
  filter: brightness(0) saturate(100%) invert(53%) sepia(12%) saturate(789%) hue-rotate(177deg) brightness(91%) contrast(84%);
}

.top-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  transition: color 0.2s ease;
}

.top-search input::placeholder {
  color: #8a94a3;
}

.top-search button {
  min-height: 34px;
  border-radius: 999px;
  background: #111;
  color: white;
  padding: 0 16px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

body.cinema.cinema-night .top-search {
  background: rgba(17, 24, 39, 0.82);
  color: #c4ccda;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.cinema.cinema-night .top-search input {
  color: #edf3ff;
}

body.cinema.cinema-night .top-search input::placeholder {
  color: rgba(215, 222, 235, 0.72);
}

body.cinema.cinema-night .top-search button {
  background: #edf3ff;
  color: #111827;
}

body.cinema.cinema-night .top-suggestions {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

body.cinema.cinema-night .top-suggestion-item {
  color: #dbe7ff;
}

body.cinema.cinema-night .top-suggestion-item:hover,
body.cinema.cinema-night .top-suggestion-item.active {
  background: rgba(47, 107, 255, 0.16);
  color: #8fb5ff;
}

body.cinema.cinema-night .top-suggestion-status {
  color: #91a1b8;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 242, 248, 0.88);
  font-size: 20px;
}

.bottom-tabs {
  display: none;
}

@media (min-width: 861px) {
  body.cinema {
    background: #f5f6f8;
    color: #111827;
  }

  body.cinema .app {
    display: block;
    min-height: 100vh;
  }

  body.cinema .main {
    padding: 104px 0 72px;
  }

  .top-nav {
    position: fixed;
    z-index: 30;
    grid-template-columns: minmax(156px, auto) auto minmax(320px, 420px) minmax(0, 1fr) auto;
    gap: 30px;
    min-height: 82px;
    padding: 0 max(48px, calc((100vw - var(--cinema-pc-nav-max)) / 2));
    background: rgba(245, 246, 248, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #111827;
  }

  .logo-button {
    gap: 10px;
    min-width: 160px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 24px;
  }

  .logo-button strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 900;
    color: #111827;
    white-space: nowrap;
  }

  .logo-button small {
    max-width: 150px;
    color: #717b8a;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    gap: 30px;
  }

  #navShortBtn,
  #navHistoryBtn {
    display: none;
  }

  .nav-link,
  .desktop-nav-btn {
    min-height: 38px;
    padding: 0;
    font-size: 20px;
    font-weight: 900;
    opacity: 1;
    color: #111827;
  }

  .nav-link.active {
    color: #0f172a;
  }

  .top-search {
    min-height: 48px;
    max-width: 420px;
    border-radius: 999px;
    background: #e9edf3;
    color: #8a95a5;
    box-shadow: none;
  }

  .top-search-wrap {
    width: min(36vw, 420px);
  }

  .top-search input {
    font-size: 18px;
    font-weight: 700;
  }

  .top-search button {
    display: none;
  }

  .desktop-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-width: 0;
  }

  .desktop-nav-btn {
    white-space: nowrap;
  }

  .icon-btn {
    width: 48px;
    height: 48px;
    justify-self: end;
    display: grid;
    place-items: center;
    background: #e9edf3;
    color: #4b5563;
    font-size: 20px;
  }

  body.cinema .theme-panel {
    width: min(calc(100vw - 160px), var(--cinema-pc-hero-max));
  }

  body.cinema .discover-page {
    max-width: none;
    min-height: calc(100vh - 118px);
    padding-bottom: 44px;
  }

  body.cinema .discover-page .discover-head-card {
    min-height: 238px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    align-items: end;
    gap: 38px;
    padding: 38px 42px;
    border-radius: 26px;
  }

  body.cinema .discover-page .discover-title {
    font-size: 46px;
    line-height: 1.05;
  }

  body.cinema .discover-page .discover-desc {
    max-width: 560px;
    font-size: 16px;
  }

  body.cinema .discover-head-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.cinema .discover-metric {
    min-height: 92px;
    box-sizing: border-box;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  }

  body.cinema .discover-metric strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    color: #111827;
  }

  body.cinema .discover-metric span {
    display: block;
    margin-top: 9px;
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
  }

  body.cinema .discover-page .discover-section {
    margin-top: 30px;
  }

  body.cinema .discover-page .discover-section-header {
    margin-bottom: 16px;
  }

  body.cinema .discover-page .discover-section-title {
    font-size: 24px;
  }

  body.cinema .discover-page .discover-section-more {
    font-size: 14px;
  }

  body.cinema .discover-page .resource-list {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
  }

  body.cinema .discover-page .resource-card {
    min-height: 132px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 20px;
  }

  body.cinema .discover-page .resource-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 18px;
  }

  body.cinema .discover-page .resource-title {
    font-size: 18px;
  }

  body.cinema .discover-page .resource-desc {
    margin-top: 8px;
    min-height: 42px;
    font-size: 14px;
  }

  body.cinema .discover-page .submit-card {
    min-height: 112px;
    margin-top: 18px;
    padding: 22px;
    border-radius: 20px;
  }

  body.cinema .discover-page .discover-footer-tips {
    margin-top: 28px;
    font-size: 13px;
  }

  .hero {
    --hero-next-image: var(--hero-image);
    position: relative;
    width: min(calc(100% - 160px), var(--cinema-pc-hero-max));
    min-height: auto;
    aspect-ratio: 2.4 / 1;
    margin: 0 auto 84px;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    align-content: end;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.62) 100%),
      var(--hero-image) center/cover;
    background-color: #070b12;
    color: #fff;
    box-shadow: none;
    isolation: isolate;
    transition: background-image 0.45s ease;
  }

  .hero::before,
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .hero::before {
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.62) 100%);
  }

  .hero::after {
    z-index: 0;
    opacity: 0;
    background: var(--hero-next-image) center/cover;
    background-color: #070b12;
    transition: opacity 0.42s ease;
  }

  .hero.banner-fading::after {
    opacity: 1;
  }

  .hero h1,
  .hero h2,
  .hero p {
    display: none;
  }

  .hero-actions {
    position: absolute;
    left: 42px;
    bottom: 52px;
    z-index: 3;
    display: flex;
    margin: 0;
  }

  .hero-search-btn {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 25px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  .hero-search-btn::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 13px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 1px;
    display: inline-block;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
  }

  .hero-search-btn:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  }

  .hero-search-btn:hover::after {
    transform: rotate(45deg) translate(3px, -4px);
  }

  .hero-search-btn:active {
    transform: translateY(-1px) scale(0.98);
  }

  .hero-ghost-btn {
    display: none;
  }

  .banner-thumbs {
    position: absolute;
    right: 166px;
    bottom: 36px;
    z-index: 3;
    display: flex;
    gap: 12px;
    margin: 0;
  }

  .banner-thumb {
    width: 126px;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    border: 2px solid rgba(255, 255, 255, 0.56);
    padding: 7px;
    opacity: 0.72;
    font-size: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .banner-thumb.active {
    opacity: 1;
    border-color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .banner-thumb:hover {
    transform: translateY(-5px);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.86);
  }

  .banner-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    opacity: 0;
  }

  .banner-thumb.active::after {
    opacity: 1;
    animation: bannerThumbProgress var(--banner-duration, 4500ms) linear both;
  }

  @keyframes bannerThumbProgress {
    from { width: 0; }
    to { width: 100%; }
  }

  .feature-cards,
  .continue-watch,
  .discover-more,
  .home-sections {
    display: none;
  }

  .section-title-row,
  body.cinema .quick-cats,
  body.cinema #message,
  body.cinema #grid,
  .load-more-wrap,
  .site-footer {
    width: min(calc(100% - 160px), var(--cinema-pc-hero-max));
  }

  .section-title-row {
    align-items: center;
    margin-bottom: 22px;
  }

  .section-title-row h3 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    color: #111827;
  }

  .refresh-btn {
    display: none;
  }

  body.cinema .quick-cats {
    display: flex;
    gap: 12px;
    margin: 0 auto 28px;
  }

  .cat-chip {
    min-height: 40px;
    min-width: 86px;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    background: #ffffff;
    color: #8a95a5;
    font-size: 17px;
    font-weight: 900;
  }

  .cat-chip.active {
    background: #1769ff;
    color: #ffffff;
  }

  body.cinema #grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 34px;
  }

  body.cinema .card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    display: block;
  }

  body.cinema .card:hover {
    transform: translateY(-3px);
    border-color: transparent;
  }

  body.cinema .poster {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    background: #dfe4ec;
    box-shadow: none;
    transition: filter 0.2s ease, transform 0.2s ease;
  }

  body.cinema .card:hover .poster {
    filter: brightness(1.04);
  }

  .card-body {
    display: block;
    padding: 12px 2px 0;
  }

  .title {
    min-height: auto;
    color: #334155;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
    word-break: break-word;
  }

  .meta,
  .card-actions {
    display: none;
  }

  .rank-badge {
    top: 0;
    left: 0;
    min-height: 28px;
    border-radius: 6px 0 6px 0;
    padding: 5px 10px;
    background: #7447ff;
    color: #ffffff;
    font-size: 13px;
  }

  .back-top {
    position: fixed;
    right: 24px;
    bottom: 34px;
    z-index: 32;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.94);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  }

  body.nav-stuck .back-top {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .back-top img {
    width: 27px;
    height: 27px;
    display: block;
  }

  body.cinema.cinema-night {
    background: #090d14;
    color: #edf3ff;
  }

  body.cinema.cinema-night .top-nav {
    background: rgba(9, 13, 20, 0.9);
    color: #edf3ff;
  }

  body.cinema.cinema-night .logo-button strong,
  body.cinema.cinema-night .nav-link,
  body.cinema.cinema-night .desktop-nav-btn,
  body.cinema.cinema-night .section-title-row h3 {
    color: #edf3ff;
  }

  body.cinema.cinema-night .logo-button small {
    color: #8ea0b8;
  }

  body.cinema.cinema-night .top-search,
  body.cinema.cinema-night .icon-btn {
    background: rgba(17, 24, 39, 0.92);
    color: #91a1b8;
  }

  body.cinema.cinema-night .refresh-btn,
  body.cinema.cinema-night .cat-chip {
    background: rgba(17, 24, 39, 0.92);
    color: #cbd5e1;
  }

  body.cinema.cinema-night .cat-chip.active {
    background: #2f6bff;
    color: #fff;
  }

  body.cinema.cinema-night .title {
    color: #d7deeb;
  }

  body.cinema.cinema-night .poster {
    background: #121b2b;
  }
}

@media (min-width: 861px) and (max-width: 1439px) {
  .top-nav {
    grid-template-columns: minmax(138px, auto) auto minmax(300px, 460px) minmax(0, 1fr) auto;
    gap: 22px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-link,
  .desktop-nav-btn {
    font-size: 18px;
  }

  .hero,
  .section-title-row,
  body.cinema .theme-panel,
  body.cinema .quick-cats,
  body.cinema #message,
  body.cinema #grid,
  .load-more-wrap,
  .site-footer {
    width: calc(100% - 168px);
  }

  body.cinema #grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .top-nav {
    grid-template-columns: auto auto minmax(240px, 1fr) auto;
    gap: 18px;
  }

  .desktop-nav-actions {
    display: none;
  }

  .logo-button strong {
    font-size: 20px;
  }

  body.cinema #grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body.cinema .discover-page .discover-head-card {
    grid-template-columns: 1fr;
  }

  .banner-thumbs {
    right: 38px;
  }
}

.theme-page {
  display: none;
}

.theme-page.active {
  display: block;
}

.theme-panel {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  margin: 0 auto 24px;
}

.theme-panel.active {
  display: block;
  animation: panelIn 0.2s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-card {
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.panel-title {
  margin: 0 0 14px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.discover-page {
  max-width: 480px;
  min-height: calc(100dvh - 94px - env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 0 0 16px;
  color: #111827;
}

.discover-page .discover-head-card {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.82)),
    linear-gradient(135deg, #eef5ff, #ffffff 58%, #fff7ed);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 34px rgba(31, 45, 61, 0.07);
}

.discover-page .discover-head-card::before {
  content: "";
  position: absolute;
  right: -48px;
  top: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96, 165, 250, 0.03));
}

.discover-page .discover-head-card::after {
  content: "";
  position: absolute;
  right: 46px;
  bottom: -70px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.08);
}

.discover-page .discover-head-content {
  position: relative;
  z-index: 1;
}

.discover-head-metrics {
  display: none;
}

@media (min-width: 861px) {
  body.cinema .discover-head-metrics {
    display: grid;
  }
}

.discover-page .discover-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 900;
  color: #111827;
  letter-spacing: 0;
}

.discover-page .discover-desc {
  margin-top: 10px;
  max-width: 330px;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.discover-page .discover-tags,
.discover-page .resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discover-page .discover-tags {
  margin-top: 18px;
}

.discover-page .discover-tag,
.discover-page .meta-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.09);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}

.discover-page .discover-tag.orange {
  color: #d97706;
  background: rgba(245, 158, 11, 0.13);
}

.discover-page .discover-tag.gray {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
}

.discover-page .discover-section {
  margin-top: 22px;
}

.discover-page .discover-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.discover-page .discover-section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #111827;
}

.discover-page .discover-section-more {
  font-size: 12px;
  color: #9ca3af;
}

.discover-page .resource-list {
  display: grid;
  gap: 10px;
}

.discover-page .resource-card {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.82);
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.discover-page .resource-card:active {
  transform: scale(0.985);
}

.discover-page .resource-card:hover {
  background: #ffffff;
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 14px 30px rgba(31, 45, 61, 0.085);
}

.discover-page .resource-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 23px;
  font-weight: 900;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.07);
}

.discover-page .resource-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-page .resource-logo.software {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.12);
}

.discover-page .resource-logo.tool {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.11);
}

.discover-page .resource-logo.blog {
  color: #d97706;
  background: rgba(245, 158, 11, 0.13);
}

.discover-page .resource-main {
  flex: 1;
  min-width: 0;
}

.discover-page .resource-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.discover-page .resource-title {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.discover-page .resource-badge {
  flex: 0 0 auto;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 20px;
  font-weight: 800;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.09);
}

.discover-page .resource-badge.software {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.12);
}

.discover-page .resource-badge.tool {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.11);
}

.discover-page .resource-badge.blog {
  color: #d97706;
  background: rgba(245, 158, 11, 0.13);
}

.discover-page .resource-desc {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discover-page .resource-meta {
  margin-top: 9px;
  gap: 6px;
}

.discover-page .meta-tag {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  color: #64748b;
  background: #f4f7fb;
  box-shadow: none;
}

.discover-page .resource-arrow {
  margin-left: auto;
  flex: 0 0 18px;
  color: #b6c0cf;
}

.discover-page .resource-arrow .mine-icon {
  width: 18px;
  height: 18px;
}

.discover-page .submit-card {
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px dashed rgba(37, 99, 235, 0.28);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.discover-page .submit-card:active {
  transform: scale(0.985);
}

.discover-page .submit-card:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(255, 255, 255, 0.98));
}

.discover-page .submit-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.discover-page .submit-icon img {
  width: 27px;
  height: 27px;
  display: block;
  object-fit: contain;
}

.discover-page .submit-title {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
}

.discover-page .submit-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.discover-page .discover-footer-tips {
  margin-top: 24px;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8;
}

.mine-avatar,
.mine-name,
.mine-meta {
  display: none;
}

.mine-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mine-info-list {
  display: grid;
  gap: 10px;
}

.mine-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
}

.mine-info-row strong {
  color: #172033;
  font-weight: 900;
  text-align: right;
  word-break: break-all;
}

.mine-page {
  width: 100%;
  max-width: 480px;
  min-height: calc(100dvh - 94px - env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 0 0 16px;
  color: #111827;
}

.mine-page .profile-card {
  position: relative;
  overflow: hidden;
  padding: 23px 22px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, #eef5ff, #ffffff 58%, #fff7ed);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 34px rgba(31, 45, 61, 0.07);
}

.mine-page .profile-card::before {
  content: "";
  position: absolute;
  right: -46px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.13), rgba(105, 169, 255, 0.04));
}

.mine-page .profile-card::after {
  content: "";
  position: absolute;
  right: 38px;
  bottom: -70px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 184, 77, 0.08);
}

.mine-page .profile-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mine-page .avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf2ff, #dce9ff);
  color: #2563eb;
  font-size: 28px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.mine-page .mine-icon {
  width: 1em;
  height: 1em;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mine-page .avatar .mine-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 6px 10px rgba(37, 99, 235, 0.12));
}

.mine-page .profile-info {
  flex: 1;
  min-width: 0;
}

.mine-page .profile-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  color: #111827;
}

.mine-page .profile-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mine-page .tag-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mine-page .tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.09);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}

.mine-page .tag.gray {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
}

.mine-page .tag.orange {
  color: #d97706;
  background: rgba(245, 158, 11, 0.13);
}

.mine-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.mine-page .stat-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.06);
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mine-page .stat-card:active {
  transform: scale(0.985);
}

.mine-page .stat-card:hover {
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 14px 30px rgba(31, 45, 61, 0.085);
}

.mine-page .stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -30px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  opacity: 0.18;
}

.mine-page .stat-card.blue::after {
  background: #2563eb;
}

.mine-page .stat-card.orange::after {
  background: #f59e0b;
}

.mine-page .stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}

.mine-page .stat-icon .mine-icon {
  width: 22px;
  height: 22px;
}

.mine-page .blue .stat-icon {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.mine-page .orange .stat-icon {
  color: #d97706;
  background: rgba(245, 158, 11, 0.13);
}

.mine-page .stat-label {
  font-size: 14px;
  color: #6b7280;
}

.mine-page .stat-value {
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
}

.mine-page .stat-value span {
  margin-left: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #8a94a6;
}

.mine-page .section {
  margin-top: 22px;
}

.mine-page .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.mine-page .section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #111827;
}

.mine-page .section-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

.mine-page .info-card,
.mine-page .menu-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.06);
}

.mine-page .info-card {
  padding: 8px;
}

.mine-page .info-item {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 8px;
  border-radius: 12px;
}

.mine-page .info-item + .info-item {
  margin-top: 4px;
}

.mine-page .info-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 94px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.mine-page .info-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #f3f6fb;
}

.mine-page .info-icon .mine-icon {
  width: 17px;
  height: 17px;
}

.mine-page .info-value {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mine-page .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #f59e0b;
  vertical-align: middle;
}

.mine-page .status-dot.success {
  background: #22c55e;
}

.mine-page .status-dot.error {
  background: #ef4444;
}

.mine-page .menu-card {
  overflow: hidden;
}

.mine-page .menu-item {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 15px;
  border: 0;
  text-decoration: none;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mine-page .menu-item:hover {
  background: rgba(37, 99, 235, 0.035);
}

.mine-page .menu-item:active {
  background: rgba(37, 99, 235, 0.07);
}

.mine-page .menu-item + .menu-item {
  border-top: 1px solid rgba(229, 233, 240, 0.86);
}

.mine-page .menu-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 18px;
}

.mine-page .menu-icon .mine-icon {
  width: 20px;
  height: 20px;
}

.mine-page .menu-icon.blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.mine-page .menu-icon.green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.mine-page .menu-icon.purple {
  background: rgba(124, 58, 237, 0.11);
  color: #7c3aed;
}

.mine-page .menu-icon.orange {
  background: rgba(245, 158, 11, 0.13);
  color: #d97706;
}

.mine-page .menu-icon.gray {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.mine-page .menu-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.mine-page .menu-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.mine-page .menu-desc {
  margin-top: 3px;
  font-size: 12px;
  color: #9ca3af;
}

.mine-page .menu-arrow {
  margin-left: auto;
  flex: 0 0 18px;
  color: #b6c0cf;
  font-size: 20px;
  font-weight: 300;
}

.mine-page .menu-arrow .mine-icon {
  width: 18px;
  height: 18px;
}

.mine-page .footer-tips {
  margin-top: 22px;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: #a0a8b8;
}

.mine-toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  z-index: 120;
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.mine-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.has-announcement-toast .mine-toast {
  bottom: 22%;
}

.mofa-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(12px);
}

.mofa-feedback-overlay.open {
  display: flex;
  animation: fadeIn 0.18s ease both;
}

.mofa-feedback-dialog {
  width: min(420px, 100%);
  box-sizing: border-box;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
  animation: dialogPop 0.22s ease both;
}

.mofa-feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mofa-feedback-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: #111827;
}

.mofa-feedback-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.mofa-feedback-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mofa-feedback-field {
  display: block;
  margin-top: 12px;
}

.mofa-feedback-field span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.mofa-feedback-field textarea,
.mofa-feedback-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background: #f8fafc;
  color: #111827;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mofa-feedback-field textarea {
  min-height: 132px;
  padding: 13px 14px;
  resize: none;
}

.mofa-feedback-field input {
  height: 46px;
  padding: 0 14px;
}

.mofa-feedback-field textarea:focus,
.mofa-feedback-field input:focus {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.mofa-feedback-submit {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.mofa-feedback-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.mofa-feedback-submit:active {
  transform: translateY(0);
}

.mofa-feedback-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.external-confirm {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(17, 24, 39, 0.42);
}

.external-confirm.open {
  display: grid;
}

.external-confirm-card {
  width: min(90vw, 360px);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.external-confirm-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.external-confirm-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  word-break: break-all;
}

.external-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.external-confirm-actions button {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 900;
}

.external-confirm-cancel {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #475569;
}

.external-confirm-ok {
  background: #1769ff;
  color: #fff;
}

body.cinema .app {
  display: block;
  min-height: 100vh;
}

body.cinema .main {
  padding: 0 0 48px;
}

body.cinema .sidebar {
  position: fixed;
  left: 24px;
  top: 92px;
  z-index: 9;
  width: 330px;
  max-height: calc(100vh - 116px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  transform: translateX(calc(-100% - 32px));
  transition: transform 0.22s ease;
  box-shadow: var(--shadow);
}

body.cinema.show-tools .sidebar {
  transform: translateX(0);
}

body.cinema .quick-cats,
body.cinema .home-sections,
body.cinema #message,
body.cinema #grid {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    width: min(360px, calc(100vw - 28px));
    left: 14px;
    top: 14px;
    max-height: calc(100vh - 28px);
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-body img {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  body.cinema {
    --hero-image: url("https://www.laisoso.com/views/index/news/common/static/images/photo-1489599849927-2ee91cede3ba.webp");
    --banner-accent: 198 126 61;
    --banner-accent-soft: 232 196 141;
    --banner-accent-dark: 86 52 28;
    position: relative;
    background: #f5f7fb;
    color: #101827;
    padding-bottom: 76px;
    isolation: isolate;
  }

  body.cinema.is-home-panel::before {
    content: "";
    position: fixed;
    z-index: 0;
    left: -58px;
    right: -58px;
    top: -42px;
    height: 420px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(245, 247, 251, 0.18) 58%, #f5f7fb 100%),
      var(--hero-image) center 12% / cover;
    filter: blur(24px) saturate(1.38) contrast(1.04);
    transform: scale(1.14);
    opacity: 1;
    pointer-events: none;
    transition: background-image 0.42s ease, opacity 0.28s ease;
  }

  body.cinema.is-home-panel.nav-stuck::before {
    opacity: 0;
  }

  body.cinema:not(.is-home-panel)::before {
    display: none;
  }

  body.cinema .app {
    position: relative;
    z-index: 1;
  }

  body.cinema.page-search-list .main,
  body.cinema.page-search-list .main.search-list-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.cinema.page-search-list .top-nav {
    display: none !important;
  }

  .top-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 18px 12px;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    outline: 0;
    transition: background 0.26s ease, box-shadow 0.26s ease, padding 0.22s ease, backdrop-filter 0.26s ease;
  }

  body.nav-stuck .top-nav {
    padding: 14px 18px 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .logo-button,
  .nav-links,
  .icon-btn {
    display: none;
  }

  .top-search {
    min-height: 48px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.22);
    color: #334155;
    padding: 0 16px;
    border: 0;
    box-shadow:
      0 8px 22px rgba(var(--banner-accent-dark), 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(7px) saturate(1.08);
    -webkit-backdrop-filter: blur(7px) saturate(1.08);
    transition: background 0.26s ease, color 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  }

  .top-search input {
    color: #172033;
    font-weight: 700;
  }

  .top-search .search-icon-img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(53%) sepia(12%) saturate(789%) hue-rotate(177deg) brightness(91%) contrast(84%);
  }

  body.nav-stuck .top-search {
    min-height: 44px;
    background: #f1f3f5;
    color: #8a95a5;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nav-stuck .top-search input {
    color: #172033;
  }

  .top-search input::placeholder {
    color: rgba(51, 65, 85, 0.76);
  }

  body.nav-stuck .top-search input::placeholder {
    color: #9aa4b2;
  }

  body.nav-stuck .top-search .search-icon-img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(10%) saturate(495%) hue-rotate(177deg) brightness(92%) contrast(85%);
  }

  .top-search button {
    display: none;
  }

  body.cinema .main {
    position: relative;
    padding: 0 0 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(245, 247, 251, 0.08) 248px, #f5f7fb 390px, #f5f7fb 100%);
    overflow: hidden;
    transition: background 0.28s ease;
  }

  body.cinema .main::before {
    display: none;
  }

  body.cinema .main > * {
    position: relative;
    z-index: 1;
  }

  body.nav-stuck .main {
    background: #f5f7fb;
  }

  body.nav-stuck .main::before {
    opacity: 0;
  }

  .home-bottom-loader {
    width: calc(100% - 36px);
    min-height: 116px;
    margin-top: 12px;
    padding-bottom: 18px;
  }

  .home-bottom-loader-inner {
    min-height: 40px;
    padding: 0 15px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(31, 45, 61, 0.06);
  }

  .hero {
    width: calc(100% - 36px);
    min-height: auto;
    aspect-ratio: 2.05 / 1;
    margin: -2px auto 16px;
    border-radius: 14px;
    padding: 18px 16px;
    align-content: end;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.03) 50%, rgba(0,0,0,0.58) 100%),
      var(--hero-image) center/cover;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(var(--banner-accent-dark), 0.18);
    isolation: isolate;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    border-radius: inherit;
    overflow: hidden;
  }

  .hero h1,
  .hero h2 {
    color: white;
    font-size: 22px;
    line-height: 1.18;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
  }

  .hero p {
    color: rgba(255, 255, 255, 0.88);
    margin-top: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
  }

  .hero-actions {
    display: none;
  }

  body.is-tab-subpage .hero {
    display: none;
  }

  body.is-tab-subpage .top-nav {
    display: none;
  }

  body.cinema.is-tab-subpage {
    padding-bottom: 0;
  }

  body.is-tab-subpage .main {
    padding-top: calc(22px + env(safe-area-inset-top));
    min-height: 100dvh;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  body.is-tab-subpage {
    min-height: 100dvh;
  }

  body.is-tab-subpage .theme-panel {
    min-height: calc(100dvh - 122px - env(safe-area-inset-bottom));
    margin-bottom: 0;
  }

  body.is-tab-subpage .back-top {
    display: none;
  }

  .banner-thumbs {
    display: none;
  }

  .banner-dots {
    display: flex;
    right: 14px;
    bottom: 12px;
  }

  .feature-cards {
    width: calc(100% - 36px);
    margin: 0 auto 16px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .feature-card {
    min-height: 88px;
    padding: 19px 18px;
    align-content: start;
  }

  .feature-card:first-child {
    grid-row: span 2;
    min-height: 188px;
  }

  .feature-card strong {
    font-size: 23px;
    line-height: 1.05;
  }

  .feature-card span {
    font-size: 13px;
  }

  .continue-watch {
    width: calc(100% - 36px);
    min-height: 48px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: rgba(238, 242, 246, 0.82);
    color: #94a0af;
    font-size: 14px;
    padding: 0 18px;
  }

  .discover-more,
  .site-footer {
    display: none;
  }

  .section-title-row {
    width: calc(100% - 36px);
    margin-bottom: -36px;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
  }

  .section-title-row h3 {
    display: none;
  }

  .refresh-btn {
    margin-left: auto;
    background: transparent;
    color: #394b61;
    pointer-events: auto;
  }

  .main,
  .sidebar,
  .drawer {
    padding: 14px;
  }

  body.cinema .quick-cats,
  body.cinema .home-sections,
  body.cinema .theme-panel,
  body.cinema #message,
  body.cinema #grid {
    width: calc(100% - 36px);
  }

  body.cinema .quick-cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin-bottom: 10px;
    padding-right: 64px;
    gap: 10px;
    scroll-padding-inline: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .cat-chip {
    white-space: nowrap;
    background: transparent;
    color: #7d8797;
    min-height: 32px;
    padding: 0 4px;
    font-size: 15px;
  }

  .cat-chip.active {
    min-width: 58px;
    padding: 0 12px;
    color: white;
  }

  .home-sections {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .shelf-row {
    grid-auto-columns: minmax(118px, 31vw);
    gap: 10px;
  }

  .card-body {
    padding: 8px 0 0;
  }

  .title {
    font-size: 15px;
    line-height: 1.25;
  }

  .card-actions {
    display: none;
  }

  body.cinema .card {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .poster {
    border-radius: 8px;
  }

  .rank-badge {
    min-height: 22px;
    border-radius: 6px 0 6px 0;
    padding: 3px 7px;
    font-size: 11px;
  }

  .ranking-card .meta {
    display: block;
    margin-top: 6px;
    color: #7d8797;
    font-size: 12px;
    line-height: 1.25;
  }

  .bottom-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 12;
    display: flex;
    align-items: stretch;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.88);
    border-top: 0;
    box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    isolation: isolate;
  }

  .bottom-tabs::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;
    height: 18px;
    background: inherit;
    pointer-events: none;
    z-index: -1;
  }

  /* 首页页内搜索层：底部导航与返回顶部浮在搜索层之上 */
  body.cinema.search-overlay-open .bottom-tabs,
  body.cinema.search-overlay-open .back-top {
    z-index: 62;
  }

  body.cinema.search-overlay-open .search-page.open .search-body,
  body.cinema.search-overlay-open .search-page.open .search-result {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .tab {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 2px;
    color: #8a94a3;
    font-size: 12px;
    font-weight: 700;
  }

  .tab span {
    display: grid;
    place-items: center;
  }

  .search-resource-card {
    padding: 12px 12px 13px;
    border-radius: 11px;
  }

  .search-resource-title {
    padding-left: 10px;
    padding-bottom: 8px;
    font-size: 16px;
    line-height: 1.32;
  }

  .search-resource-title-text {
    line-height: 1.32;
    max-height: 2.64em;
  }

  .search-resource-title::before {
    top: 2px;
    bottom: 10px;
    width: 3px;
  }

  .search-resource-footer {
    margin-top: 10px;
    gap: 8px;
  }

  .search-pan-icon {
    width: 24px;
    height: 24px;
  }

  .search-result-actions {
    gap: 7px;
  }

  .search-result-actions button {
    min-height: 36px;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 14px;
  }

  .tab-icon {
    width: 23px;
    height: 23px;
    display: block;
    object-fit: contain;
  }

  .tab-icon-on {
    display: none;
  }

  .tab.active {
    color: #1e63ff;
  }

  .tab.active .tab-icon-off {
    display: none;
  }

  .tab.active .tab-icon-on {
    display: block;
  }

  body.cinema.cinema-night {
    background: #090d14;
    color: #edf3ff;
  }

  body.cinema.cinema-night.is-home-panel::before {
    background:
      linear-gradient(180deg, rgba(9, 13, 20, 0.20) 0%, rgba(9, 13, 20, 0.48) 66%, #090d14 100%),
      var(--hero-image) center top / cover;
    opacity: 0.9;
  }

  body.cinema.cinema-night .top-nav {
    background:
      linear-gradient(180deg, rgba(9, 13, 20, 0.26), rgba(9, 13, 20, 0));
  }

  body.cinema.cinema-night.nav-stuck .top-nav {
    background: rgba(16, 24, 39, 0.96);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body.cinema.cinema-night .top-search {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(15, 23, 42, 0.18));
    border-color: rgba(255, 255, 255, 0.16);
    color: #9fb0c8;
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body.cinema.cinema-night.nav-stuck .top-search {
    background: rgba(226, 232, 240, 0.12);
    border-color: transparent;
    box-shadow: none;
    color: #9fb0c8;
  }

  body.cinema.cinema-night .home-bottom-loader {
    color: #aebbd0;
  }

  body.cinema.cinema-night .home-bottom-loader-inner {
    background: rgba(17, 24, 39, 0.76);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  }

  body.cinema.cinema-night .home-bottom-spinner {
    border-color: rgba(174, 187, 208, 0.24);
    border-top-color: #78a6ff;
  }

  body.cinema.cinema-night .top-search input {
    color: #edf3ff;
  }

  body.cinema.cinema-night .top-search input::placeholder {
    color: #9fb0c8;
  }

  body.cinema.cinema-night .main {
    background:
      linear-gradient(180deg, rgba(9, 13, 20, 0) 0, rgba(9, 13, 20, 0.58) 242px, #090d14 338px, #090d14 100%);
  }

  body.cinema.cinema-night .main::before {
    background:
      linear-gradient(180deg, rgba(9, 13, 20, 0.16), rgba(9, 13, 20, 0.62) 76%, #090d14 100%),
      var(--hero-image) center top / cover;
    opacity: 0.68;
  }

  body.cinema.cinema-night.nav-stuck .main {
    background: #090d14;
  }

  body.cinema.cinema-night .continue-watch,
  body.cinema.cinema-night .refresh-btn,
  body.cinema.cinema-night .load-more-btn {
    background: rgba(17, 24, 39, 0.88);
    color: #d7deeb;
    border-color: rgba(255, 255, 255, 0.10);
  }

  body.cinema.cinema-night .bottom-tabs {
    background: rgba(12, 16, 24, 0.88);
    color: #d7deeb;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  }

  body.cinema.cinema-night .discover-page,
  body.cinema.cinema-night .mine-page {
    color: #edf3ff;
  }

  body.cinema.cinema-night .discover-head-card,
  body.cinema.cinema-night .profile-card {
    background:
      linear-gradient(135deg, rgba(18, 27, 43, 0.98), rgba(16, 24, 39, 0.88)),
      linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(245, 158, 11, 0.08));
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  }

  body.cinema.cinema-night .discover-head-card::before,
  body.cinema.cinema-night .profile-card::before {
    background: linear-gradient(135deg, rgba(79, 131, 255, 0.18), rgba(79, 131, 255, 0.03));
  }

  body.cinema.cinema-night .discover-head-card::after,
  body.cinema.cinema-night .profile-card::after {
    background: rgba(245, 158, 11, 0.09);
  }

  body.cinema.cinema-night .discover-title,
  body.cinema.cinema-night .discover-section-title,
  body.cinema.cinema-night .resource-title,
  body.cinema.cinema-night .submit-title,
  body.cinema.cinema-night .profile-title,
  body.cinema.cinema-night .stat-value,
  body.cinema.cinema-night .section-title,
  body.cinema.cinema-night .info-value,
  body.cinema.cinema-night .menu-title {
    color: #edf3ff;
  }

  body.cinema.cinema-night .discover-desc,
  body.cinema.cinema-night .resource-desc,
  body.cinema.cinema-night .submit-desc,
  body.cinema.cinema-night .discover-section-more,
  body.cinema.cinema-night .discover-footer-tips,
  body.cinema.cinema-night .profile-desc,
  body.cinema.cinema-night .stat-label,
  body.cinema.cinema-night .stat-value span,
  body.cinema.cinema-night .section-subtitle,
  body.cinema.cinema-night .info-left,
  body.cinema.cinema-night .menu-desc,
  body.cinema.cinema-night .footer-tips {
    color: #91a1b8;
  }

  body.cinema.cinema-night .discover-tag,
  body.cinema.cinema-night .resource-badge,
  body.cinema.cinema-night .tag {
    color: #bcd0ff;
    background: rgba(47, 107, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(110, 160, 255, 0.08);
  }

  body.cinema.cinema-night .discover-tag.orange,
  body.cinema.cinema-night .tag.orange,
  body.cinema.cinema-night .resource-badge.blog {
    color: #f8c77b;
    background: rgba(245, 158, 11, 0.14);
  }

  body.cinema.cinema-night .discover-tag.gray,
  body.cinema.cinema-night .tag.gray,
  body.cinema.cinema-night .meta-tag {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
  }

  body.cinema.cinema-night .resource-card,
  body.cinema.cinema-night .stat-card,
  body.cinema.cinema-night .info-card,
  body.cinema.cinema-night .menu-card {
    background: rgba(18, 27, 43, 0.94);
    border-color: rgba(148, 163, 184, 0.13);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  body.cinema.cinema-night .resource-card:hover,
  body.cinema.cinema-night .stat-card:hover {
    background: rgba(22, 33, 52, 0.98);
    border-color: rgba(110, 160, 255, 0.28);
  }

  body.cinema.cinema-night .resource-logo,
  body.cinema.cinema-night .avatar,
  body.cinema.cinema-night .info-icon {
    background: rgba(47, 107, 255, 0.15);
    color: #8fb5ff;
    box-shadow: inset 0 0 0 1px rgba(110, 160, 255, 0.08);
  }

  body.cinema.cinema-night .resource-logo.software,
  body.cinema.cinema-night .resource-badge.software,
  body.cinema.cinema-night .menu-icon.green {
    color: #7ddf9c;
    background: rgba(34, 197, 94, 0.14);
  }

  body.cinema.cinema-night .resource-logo.tool,
  body.cinema.cinema-night .resource-badge.tool,
  body.cinema.cinema-night .menu-icon.purple {
    color: #c4a8ff;
    background: rgba(124, 58, 237, 0.16);
  }

  body.cinema.cinema-night .resource-logo.blog {
    color: #f8c77b;
    background: rgba(245, 158, 11, 0.14);
  }

  body.cinema.cinema-night .mine-page .menu-icon.orange {
    color: #f8c77b;
    background: rgba(245, 158, 11, 0.14);
  }

  body.cinema.cinema-night .resource-arrow,
  body.cinema.cinema-night .menu-arrow {
    color: #64748b;
  }

  body.cinema.cinema-night .submit-card {
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.14), rgba(18, 27, 43, 0.94));
    border-color: rgba(110, 160, 255, 0.26);
  }

  body.cinema.cinema-night .submit-card:hover {
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(22, 33, 52, 0.98));
    border-color: rgba(110, 160, 255, 0.42);
  }

  body.cinema.cinema-night .submit-icon,
  body.cinema.cinema-night .stat-icon,
  body.cinema.cinema-night .menu-icon.blue {
    color: #8fb5ff;
    background: rgba(47, 107, 255, 0.15);
  }

  body.cinema.cinema-night .menu-icon.gray {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
  }

  body.cinema.cinema-night .mine-page .orange .stat-icon {
    color: #f8c77b;
    background: rgba(245, 158, 11, 0.14);
  }

  body.cinema.cinema-night .info-item + .info-item,
  body.cinema.cinema-night .menu-item + .menu-item {
    border-color: rgba(148, 163, 184, 0.12);
  }

  body.cinema.cinema-night .menu-item:hover {
    background: rgba(110, 160, 255, 0.07);
  }

  body.cinema.cinema-night .menu-item:active {
    background: rgba(110, 160, 255, 0.12);
  }

  body.cinema.cinema-night .ranking-card .meta {
    color: #8ea0b8;
  }

  .back-top {
    position: fixed;
    right: 18px;
    bottom: 82px;
    z-index: 13;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.94);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.14);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  }

  body.nav-stuck .back-top {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .back-top img {
    width: 26px;
    height: 26px;
    display: block;
  }

  body.cinema.cinema-night .back-top {
    background: rgba(17, 24, 39, 0.96);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  }

  body.cinema.cinema-night .search-page,
  body.cinema.cinema-night .search-topbar {
    background: #101827;
    color: #edf3ff;
  }

  body.cinema.cinema-night .search-back,
  body.cinema.cinema-night .search-submit,
  body.cinema.cinema-night .search-input {
    color: #edf3ff;
  }

  body.cinema.cinema-night .search-page {
    background: #0b111d;
    color: #edf3ff;
  }

  body.cinema.cinema-night .search-topbar {
    background: #0b1322;
    border-bottom-color: rgba(148, 163, 184, 0.16);
  }

  body.cinema.cinema-night .search-input-wrap {
    background: rgba(226, 232, 240, 0.12);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
  }

  body.cinema.cinema-night .mobile-suggestions {
    background: rgba(17, 24, 39, 0.96);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  }

  body.cinema.cinema-night .mobile-suggestion-item {
    color: #dbe7ff;
  }

  body.cinema.cinema-night .mobile-suggestion-item:active,
  body.cinema.cinema-night .mobile-suggestion-item.active {
    background: rgba(47, 107, 255, 0.16);
    color: #8fb5ff;
  }

  body.cinema.cinema-night .mobile-suggestion-status {
    color: #91a1b8;
  }

  body.cinema.cinema-night .search-input::placeholder {
    color: rgba(203, 213, 225, 0.64);
  }

  body.cinema.cinema-night .mofa-feedback-dialog {
    background: rgba(17, 24, 39, 0.96);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  }

  body.cinema.cinema-night .mofa-feedback-head h3,
  body.cinema.cinema-night .mofa-feedback-field span {
    color: #edf3ff;
  }

  body.cinema.cinema-night .mofa-feedback-head p {
    color: #91a1b8;
  }

  body.cinema.cinema-night .mofa-feedback-close {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
  }

  body.cinema.cinema-night .mofa-feedback-field textarea,
  body.cinema.cinema-night .mofa-feedback-field input {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.18);
    color: #edf3ff;
  }

  body.cinema.cinema-night .mofa-feedback-field textarea:focus,
  body.cinema.cinema-night .mofa-feedback-field input:focus {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(143, 181, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.16);
  }

  body.cinema.cinema-night .search-body,
  body.cinema.cinema-night .search-result,
  body.cinema.cinema-night .search-result-list {
    background: #0b111d;
  }

  body.cinema.cinema-night .search-section,
  body.cinema.cinema-night .result-bar {
    background: #0b111d;
    border-bottom-color: rgba(148, 163, 184, 0.14);
  }

  body.cinema.cinema-night .search-sec-title,
  body.cinema.cinema-night .hot-item,
  body.cinema.cinema-night .search-resource-title,
  body.cinema.cinema-night .search-empty-state strong {
    color: #edf3ff;
  }

  body.cinema.cinema-night .search-sec-action,
  body.cinema.cinema-night .search-sec-extra,
  body.cinema.cinema-night .result-count,
  body.cinema.cinema-night .search-resource-meta,
  body.cinema.cinema-night .search-pan-meta,
  body.cinema.cinema-night .search-empty-state,
  body.cinema.cinema-night .tree-row,
  body.cinema.cinema-night .tree-tip {
    color: #91a1b8;
  }

  body.cinema.cinema-night .history-chip,
  body.cinema.cinema-night .guess-cat,
  body.cinema.cinema-night .guess-refresh,
  body.cinema.cinema-night .hot-rank {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
  }

  body.cinema.cinema-night .history-chip.active,
  body.cinema.cinema-night .guess-cat.active {
    background: #2f6bff;
    color: #fff;
  }

  body.cinema.cinema-night .search-toast,
  body.cinema.cinema-night .search-status-line {
    background: rgba(47, 107, 255, 0.16);
    color: #bcd0ff;
  }

  body.cinema.cinema-night .result-summary {
    color: #cbd5e1;
  }

  body.cinema.cinema-night .result-keyword,
  body.cinema.cinema-night .result-pan-tab.active {
    color: #6ea0ff;
  }

  body.cinema.cinema-night .result-pan-tab {
    color: #94a3b8;
  }

  body.cinema.cinema-night .result-pan-tab.loading:not(.active) {
    color: #64748b;
  }

  body.cinema.cinema-night .result-summary::before,
  body.cinema.cinema-night .result-pan-tab.active::after,
  body.cinema.cinema-night .search-status-dot {
    background: #4f83ff;
  }

  body.cinema.cinema-night .search-resource-card {
    background: #121b2b;
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  body.cinema.cinema-night .search-resource-title {
    border-bottom-color: rgba(148, 163, 184, 0.12);
  }

  body.cinema.cinema-night .search-resource-title::before {
    background: #ff6b7a;
  }

  body.cinema.cinema-night .search-highlight {
    color: #ff7f8d;
    background: rgba(255, 107, 122, 0.14);
  }

  body.cinema.cinema-night .search-local-badge {
    color: #bcd0ff;
    background: rgba(47, 107, 255, 0.18);
  }

  body.cinema.cinema-night .resource-modal {
    background: rgba(3, 7, 18, 0.68);
  }

  body.cinema.cinema-night .resource-modal-card {
    background: #101827;
    color: #edf3ff;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  }

  body.cinema.cinema-night .resource-poster-stage {
    background: #0b111d;
  }

  body.cinema.cinema-night .resource-poster-bg {
    opacity: 0.22;
  }

  body.cinema.cinema-night .resource-poster-main {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  }

  body.cinema.cinema-night .resource-poster-fade {
    background: linear-gradient(180deg, rgba(16, 24, 39, 0) 0%, rgba(16, 24, 39, 0.58) 58%, #101827 100%);
  }

  body.cinema.cinema-night .resource-modal-close {
    background: rgba(18, 27, 43, 0.92);
    border-color: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }

  body.cinema.cinema-night .resource-modal-body {
    background: #101827;
  }

  body.cinema.cinema-night .resource-modal.has-poster .resource-modal-body {
    background: linear-gradient(180deg, rgba(16, 24, 39, 0) 0, rgba(16, 24, 39, 0) 34px, #101827 34px, #101827 100%);
  }

  body.cinema.cinema-night .resource-dialog-title-block {
    background: rgba(18, 27, 43, 0.88);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  }

  body.cinema.cinema-night .resource-modal.has-poster .resource-dialog-title-block {
    background: rgba(18, 27, 43, 0.78);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  }

  body.cinema.cinema-night .resource-dialog-title {
    color: #edf3ff;
  }

  body.cinema.cinema-night .resource-modal-loading {
    color: #91a1b8;
  }

  body.cinema.cinema-night .resource-loading-title {
    color: #60a5fa;
  }

  body.cinema.cinema-night .resource-loading-tips {
    color: #dbeafe;
  }

  body.cinema.cinema-night .resource-loading-notice {
    border-top-color: rgba(148, 163, 184, 0.24);
    color: #91a1b8;
  }

  body.cinema.cinema-night .search-result-list > .resource-loading-panel {
    background: rgba(18, 27, 43, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  }

  body.cinema.cinema-night .resource-modal-error {
    color: #ff9aa5;
  }

  body.cinema.cinema-night .resource-link-card,
  body.cinema.cinema-night .resource-notice-card {
    background: rgba(18, 27, 43, 0.92);
    border-color: rgba(110, 160, 255, 0.18);
  }

  body.cinema.cinema-night .resource-link-name {
    color: #edf3ff;
  }

  body.cinema.cinema-night .resource-link-url {
    color: #8fb5ff;
  }

  body.cinema.cinema-night .resource-modal-copy {
    background: rgba(15, 23, 42, 0.66);
    border-color: rgba(148, 163, 184, 0.18);
    color: #dbe7ff;
  }

  body.cinema.cinema-night .resource-modal-open {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
  }

  body.cinema.cinema-night .resource-modal-qr {
    background: rgba(18, 27, 43, 0.92);
    border-color: rgba(110, 160, 255, 0.18);
  }

  body.cinema.cinema-night .resource-modal-qr-title {
    color: #edf3ff;
  }

  body.cinema.cinema-night .resource-modal-qr-tips {
    color: #91a1b8;
  }

  body.cinema.cinema-night .resource-modal-qrcode {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.2);
  }

  body.cinema.cinema-night .resource-dialog-tree-toggle.is-loading {
    background: rgba(15, 23, 42, 0.58);
    color: #91a1b8;
  }

  body.cinema.cinema-night .resource-notice-card {
    color: #91a1b8;
  }

  body.cinema.cinema-night .home-announcement-overlay {
    background: rgba(0, 0, 0, 0.46);
  }

  body.cinema.cinema-night .home-announcement-dialog {
    background: rgba(30, 30, 32, 0.96);
    color: #f5f5f7;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  }

  body.cinema.cinema-night .home-announcement-content {
    color: #d1d5db;
  }

  body.cinema.cinema-night .home-announcement-btn {
    background: transparent;
    color: #0a84ff;
  }

  body.cinema.cinema-night .home-announcement-btn.primary {
    background: transparent;
    color: #0a84ff;
  }

  body.cinema.cinema-night .search-tree-btn,
  body.cinema.cinema-night .resource-dialog-tree-toggle {
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(148, 163, 184, 0.18);
    color: #dbe7ff;
  }

  body.cinema.cinema-night .search-get-btn {
    background: rgba(47, 107, 255, 0.14);
    border-color: rgba(110, 160, 255, 0.72);
    color: #8fb5ff;
  }

  body.cinema.cinema-night .search-tree-panel,
  body.cinema.cinema-night .resource-tree-panel {
    background: #0f1726;
    border-color: rgba(148, 163, 184, 0.14);
  }

  body.cinema.cinema-night .search-tree-head,
  body.cinema.cinema-night .resource-tree-head {
    color: #edf3ff;
    border-bottom-color: rgba(148, 163, 184, 0.12);
  }

  body.cinema.cinema-night .tree-tip.error {
    color: #ff9aa5;
    background: rgba(127, 29, 29, 0.28);
  }

  body.cinema.cinema-night .tree-tip.empty,
  body.cinema.cinema-night .tree-tip.more {
    background: rgba(15, 23, 42, 0.72);
  }
}

@media (min-width: 861px) {
  body.cinema .main {
    padding-top: 94px !important;
  }

  body.cinema.page-search-list .main,
  body.cinema.page-search-list .main.search-list-main {
    padding-top: 88px !important;
    margin-top: 0 !important;
  }

  body.cinema.page-detail .main.detail-main {
    padding-top: 88px !important;
    margin-top: 0 !important;
  }

  body.cinema .hero {
    width: min(calc(100vw - 160px), var(--cinema-pc-hero-max)) !important;
  }

  body.cinema .section-title-row,
  body.cinema .quick-cats,
  body.cinema #message,
  body.cinema #grid,
  body.cinema .load-more-wrap,
  body.cinema .site-footer {
    width: min(calc(100vw - 200px), var(--cinema-pc-content-max)) !important;
  }

  body.cinema .hero {
    aspect-ratio: 2.18 / 1 !important;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.50) 100%),
      var(--hero-image) center/cover !important;
    background-color: #070b12 !important;
  }

  body.cinema .hero::after {
    background: var(--hero-next-image) center/cover !important;
    background-color: #070b12 !important;
  }

  body.cinema .hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.50) 100%) !important;
  }

  body.cinema .hero-actions {
    left: 38px !important;
    bottom: 46px !important;
  }

  body.cinema .hero-search-btn {
    min-height: 42px !important;
    padding: 0 23px !important;
    font-size: 15px !important;
  }

  body.cinema .banner-thumbs {
    right: 138px !important;
    bottom: 48px !important;
    gap: 12px !important;
  }

  body.cinema .banner-thumb {
    width: 116px !important;
    padding: 6px !important;
  }

  body.cinema #grid {
    gap: 32px 42px !important;
  }

  body.cinema .section-title-row {
    margin-top: 0 !important;
  }

  body.cinema .refresh-btn {
    display: none !important;
  }

  body.cinema .search-topbar,
  body.cinema .search-body,
  body.cinema .search-result {
    width: min(calc(100% - 48px), var(--cinema-pc-search-max));
    margin-left: auto;
    margin-right: auto;
  }

  body.cinema .search-topbar {
    border-radius: 0 0 14px 14px;
  }

  body.cinema .result-bar {
    text-align: center;
  }

  body.cinema .result-summary {
    justify-content: center;
    padding-left: 0;
  }

  body.cinema .result-summary::before {
    display: none;
  }

  body.cinema .result-pan-tabs {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  body.cinema .search-result-list > .search-status-line {
    align-self: center;
  }
}

@media (min-width: 861px) and (max-width: 1439px) {
  body.cinema .hero {
    width: calc(100vw - 128px) !important;
  }

  body.cinema .section-title-row,
  body.cinema .quick-cats,
  body.cinema #message,
  body.cinema #grid,
  body.cinema .load-more-wrap,
  body.cinema .site-footer {
    width: calc(100vw - 144px) !important;
  }
}

/* ========== 搜索列表页 ========== */
body.cinema.page-search-list {
  --search-page-bg: #f5f7fb;
  --search-page-soft: #eef2f7;
  --search-page-surface: #f8fafc;
  background: var(--search-page-bg) !important;
  color: #172033;
}

body.cinema.page-search-list #app {
  min-height: 100vh;
  background: var(--search-page-bg);
}

body.cinema.page-search-list .main.search-list-main,
body.cinema.page-search-list.nav-stuck .main.search-list-main {
  background: transparent !important;
}

body.page-search-list {
  background: var(--search-page-bg, #f5f7fb);
}

body.page-search-list .headerBox,
body.page-search-list .headerKox {
  display: none !important;
}

body.page-search-list #app {
  min-height: 100vh;
}

body.page-search-list .drawer .item {
  display: block;
  padding: 12px 0;
  color: #172033;
  font-weight: 700;
  text-decoration: none;
}

body.page-search-list .global-backtop {
  z-index: 1200;
}

body.page-search-list .main.search-list-main {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  margin: 0 auto 32px;
  padding: 0;
}

.search-input-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.search-input-icon .search-icon-img {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}

.search-list-mobile-head {
  display: none;
}

.search-list-keyword-bar {
  display: none;
}

.search-list-bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 11px 24px;
  border-bottom: 1px solid #eef2f7;
  background: color-mix(in srgb, var(--search-page-bg, #f5f7fb) 28%, var(--theme-other_background, #fff));
  color: #8a95a5;
  font-size: 13px;
  font-weight: 700;
}

.search-list-bc__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--theme-theme, #1769ff) 10%, transparent);
  color: var(--theme-theme, #1769ff);
  flex: 0 0 auto;
}

.search-list-bc a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.search-list-bc a:hover {
  color: var(--theme-theme, #1769ff);
}

.search-list-bc .sep {
  opacity: 0.45;
}

.search-list-bc .cur {
  color: #172033;
}

.search-list-panel {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--theme-other_background, #fff);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.search-list-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid #eef2f7;
}

.search-list-head__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(23, 105, 255, 0.08);
  color: #1769ff;
}

.search-list-head__title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  color: #111827;
  word-break: break-word;
}

.search-list-head__meta {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.search-list-head__meta strong {
  color: #1769ff;
}

.search-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid #eef2f7;
  background: var(--theme-other_background, #fff);
}

.search-source-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: #eef2f7;
}

.search-source-tabs button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  background: transparent;
  border: 0;
}

.search-source-tabs button.on {
  background: #fff;
  color: #1769ff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.search-pan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-pan-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.search-pan-chip--on {
  border-color: #1769ff;
  color: #1769ff;
  background: rgba(23, 105, 255, 0.08);
}

.search-list-body {
  padding: 0;
}

.search-list-subhd {
  margin: 0;
  padding: 18px 24px 0;
  font-size: 16px;
  color: #172033;
}

.search-list-results.search-result-list {
  padding: 16px 20px 22px;
  background: transparent;
}

.search-list-desc {
  margin: 0 0 12px;
  padding: 0 2px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.search-result-tags .t-local {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.search-list-blocked {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffebee;
  color: #c62828;
  font-size: 14px;
  font-weight: 700;
}

.search-inline-link {
  border: 0;
  background: none;
  padding: 0;
  color: #1769ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.search-list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 24px 22px;
}

.search-pg-item {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.search-pg-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.search-pg-info {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.search-list-footer {
  width: min(100% - 40px, var(--cinema-pc-content-max));
  margin: 8px auto 32px;
}

body.page-search-list .site-footer.search-list-footer {
  padding: 28px 16px 36px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 600;
}

body.page-search-list .search-list-footer .footer-links {
  display: none;
}

body.page-search-list .search-list-footer .footer-copy p {
  margin: 0 0 8px;
}

body.page-search-list .search-list-footer .footer-copy a {
  color: var(--theme-theme, #1769ff);
  text-decoration: none;
}

body.page-search-list .search-list-head__icon {
  background: color-mix(in srgb, var(--theme-theme, #1769ff) 10%, transparent);
  color: var(--theme-theme, #1769ff);
}

body.page-search-list .search-list-head__meta strong {
  color: var(--theme-theme, #1769ff);
}

body.page-search-list .search-list-toolbar {
  background: color-mix(in srgb, var(--search-page-bg, #f5f7fb) 42%, var(--theme-other_background, #fff));
}

body.page-search-list .search-source-tabs {
  background: var(--search-page-soft, #eef2f7);
}

body.page-search-list .search-source-tabs button.on {
  background: var(--theme-other_background, #fff);
  color: var(--theme-theme, #1769ff);
}

body.page-search-list .search-pan-chip--on {
  border-color: var(--theme-theme, #1769ff);
  color: var(--theme-theme, #1769ff);
  background: color-mix(in srgb, var(--theme-theme, #1769ff) 8%, transparent);
}

body.page-search-list .search-result-list {
  background: transparent;
  padding: 16px 20px 22px;
  gap: 14px;
}

body.page-search-list .search-resource-card {
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: var(--theme-other_background, #fff);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.page-search-list .search-resource-card:hover {
  border-color: color-mix(in srgb, var(--theme-theme, #1769ff) 22%, rgba(15, 23, 42, 0.07));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

body.page-search-list .search-resource-title::before {
  background: var(--theme-theme, #1769ff);
}

body.page-search-list .search-list-desc {
  margin: 10px 2px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: color-mix(in srgb, var(--search-page-bg, #f5f7fb) 38%, var(--theme-other_background, #fff));
  color: #64748b;
}

body.page-search-list .search-result-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 0 0 auto;
}

body.page-search-list .search-list-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  min-width: 76px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #d9dee7;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, filter 0.16s ease;
}

body.page-search-list .search-list-action-btn--secondary:hover {
  border-color: color-mix(in srgb, var(--theme-theme, #1769ff) 40%, #d9dee7);
  color: var(--theme-theme, #1769ff);
}

body.page-search-list .search-list-action-btn--primary {
  background: var(--theme-theme, #1769ff);
  border-color: var(--theme-theme, #1769ff);
  color: #fff;
}

body.page-search-list .search-list-action-btn--primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

body.page-search-list .search-list-action-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.page-search-list .resource-tree-panel {
  margin-top: 14px;
  padding: 12px 14px;
  border-top: 1px dashed #e5e7eb;
  border-radius: 0 0 10px 10px;
  background: #fafafc;
}

body.page-search-list .resource-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

body.page-search-list .resource-tree-header em {
  color: #94a3b8;
  font-style: normal;
  font-weight: 600;
}

body.page-search-list .resource-tree-loading,
body.page-search-list .resource-tree-empty,
body.page-search-list .resource-tree-tip {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

body.page-search-list .resource-tree-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ef4444;
  font-size: 13px;
  line-height: 1.6;
}

body.page-search-list .resource-tree-lines,
body.page-search-list .resource-tree-body {
  max-height: 320px;
  overflow: auto;
  padding: 4px 0;
}

body.page-search-list .resource-tree-lines .tree-line-row {
  padding: 3px 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  font-family: Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

body.page-search-list .resource-tree-body .pan-tree-row {
  min-height: 30px;
  border-radius: 6px;
  transition: background 0.12s ease;
}

body.page-search-list .resource-tree-body .pan-tree-row:hover {
  background: rgba(15, 23, 42, 0.04);
}

body.page-search-list .resource-tree-tip {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(23, 105, 255, 0.06);
  color: #64748b;
}

body.page-search-list .search-tree-btn {
  background: var(--theme-other_background, #fff);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

body.page-search-list .search-tree-btn:hover {
  border-color: color-mix(in srgb, var(--theme-theme, #1769ff) 28%, rgba(15, 23, 42, 0.1));
  color: var(--theme-theme, #1769ff);
}

body.page-search-list .search-get-btn {
  background: var(--theme-theme, #1769ff);
  border-color: var(--theme-theme, #1769ff);
  color: #fff;
}

body.page-search-list .search-get-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

body.page-search-list .search-empty-state {
  min-height: 220px;
  margin: 8px 20px 20px;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: color-mix(in srgb, var(--search-page-bg, #f5f7fb) 40%, var(--theme-other_background, #fff));
}

body.page-search-list .search-empty-state strong {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.6;
}

body.page-search-list .search-net-loading {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 220px;
  margin: 8px 20px 20px;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--theme-theme, #1769ff) 24%, rgba(15, 23, 42, 0.12));
  background: color-mix(in srgb, var(--theme-theme, #1769ff) 4%, var(--theme-other_background, #fff));
  text-align: center;
}

body.page-search-list .search-net-loading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

body.page-search-list .search-net-loading__spin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--theme-theme, #1769ff) 12%, transparent);
  border-top-color: var(--theme-theme, #1769ff);
  animation: searchNetSpin 0.75s linear infinite;
}

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

body.page-search-list .search-list-pagination {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
}

body.page-search-list .search-pg-item:not(.is-disabled):hover {
  border-color: var(--theme-theme, #1769ff);
  color: var(--theme-theme, #1769ff);
}

.search-hot-section {
  width: 100%;
  margin-top: 24px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--theme-other_background, #fff);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.search-hot-section--ssr.is-enhanced {
  display: none !important;
}

.search-hot-section--ssr .search-hot-tab {
  pointer-events: none;
  cursor: default;
}

.search-hot-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 20px 24px 12px;
}

.search-hot-head__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(23, 105, 255, 0.08);
  color: var(--theme-theme, #1769ff);
}

.search-hot-title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  color: #172033;
}

.search-hot-toolbar {
  padding: 0 24px 16px;
  border-bottom: 1px solid #eef2f7;
  background: var(--theme-other_background, #fff);
}

.search-hot-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
  scrollbar-width: none;
}

.search-hot-tabs::-webkit-scrollbar {
  display: none;
}

.search-hot-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--theme-other_background, #fff);
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .search-hot-tab:hover:not(.search-hot-tab--on) {
    border-color: rgba(23, 105, 255, 0.28);
    color: var(--theme-theme, #1769ff);
  }
}

.search-hot-tab--on,
.search-hot-tab--on:hover,
.search-hot-tab--on:focus,
.search-hot-tab--on:focus-visible,
.search-hot-tab--on:active {
  border-color: var(--theme-theme, #1769ff);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: var(--theme-theme, #1769ff);
  box-shadow: 0 4px 14px rgba(23, 105, 255, 0.22);
}

.search-hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.search-hot-list li {
  border-bottom: 1px solid #eef2f7;
}

.search-hot-list li:last-child {
  border-bottom: 0;
}

.search-hot-list a {
  display: grid;
  grid-template-columns: 34px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 24px;
  background: var(--theme-other_background, #fff);
  color: inherit;
  text-decoration: none;
  transition: background 0.16s ease;
}

.search-hot-list a:hover {
  background: color-mix(in srgb, var(--theme-theme, #1769ff) 6%, var(--theme-other_background, #fff));
}

.search-hot-list .rk {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
  background: #f3f4f6;
}

.search-hot-list .rk-1 {
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #ff9248);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.28);
}

.search-hot-list .rk-2 {
  color: #fff;
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.search-hot-list .rk-3 {
  color: #fff;
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.search-hot-list .cover {
  width: 64px;
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f7;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.search-hot-list .cover--ph {
  display: block;
}

.search-hot-body {
  min-width: 0;
}

.search-hot-list .tt {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #172033;
  line-height: 1.4;
  margin-bottom: 6px;
}

.search-hot-list .desc {
  margin: 0;
  font-size: 13px;
  color: #8a95a5;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-hot-list .heat {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-theme, #1769ff);
  background: color-mix(in srgb, var(--theme-theme, #1769ff) 10%, transparent);
}

@media (min-width: 861px) {
  body.cinema.page-search-list {
    --search-page-bg: #f5f6f8;
    background: var(--search-page-bg) !important;
  }

  body.cinema.page-search-list .main,
  body.cinema.page-search-list .main.search-list-main {
    background: transparent !important;
    padding-top: 88px !important;
    margin-top: 0 !important;
    margin-bottom: 40px;
  }

  body.page-search-list .search-list-panel {
    margin-top: 8px;
  }

  body.page-search-list .search-list-bc {
    padding: 14px 24px;
  }

  body.page-search-list .search-list-head {
    padding: 24px 24px 22px;
  }

  body.page-search-list .search-list-toolbar {
    padding: 16px 24px;
  }

  body.page-search-list .search-result-list {
    gap: 16px;
    padding: 20px 24px 24px;
  }

  body.page-search-list .search-resource-card {
    padding: 16px 18px 18px;
  }

  body.page-search-list .search-resource-footer {
    align-items: flex-start;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
  }

  body.page-search-list .search-result-actions .search-list-action-btn {
    min-height: 40px;
    min-width: 76px;
    padding: 0 18px;
  }
}

@media (max-width: 860px) {
  body.page-search-list .main.search-list-main {
    width: calc(100% - 24px);
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.cinema.page-search-list .main,
  body.cinema.page-search-list .main.search-list-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.cinema.page-search-list .top-nav {
    display: none !important;
  }

  .search-list-mobile-head {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #eceff3;
  }

  .search-list-topbar.search-topbar {
    background: #fff;
    padding: 10px 14px;
    border-bottom: 0;
    gap: 8px;
  }

  .search-list-topbar .search-back {
    width: 32px;
    height: 32px;
    font-size: 28px;
    flex: 0 0 auto;
  }

  .search-list-topbar .search-input-wrap {
    height: 40px;
    background: #f7f8fa;
    border: 1px solid #e7e9ef;
  }

  .search-list-topbar .search-submit {
    padding: 0 2px;
    font-size: 15px;
    color: var(--theme-theme, #1769ff);
  }

  .search-list-mobile-suggestions.mobile-suggestions {
    width: auto;
    margin: 0 14px 10px;
  }

  .search-list-mobile-suggestions.mobile-suggestions.open {
    display: grid;
  }

  .search-list-panel {
    border-radius: 12px;
  }

  .search-list-bc--desktop,
  .search-list-head--desktop {
    display: none !important;
  }

  .search-list-keyword-bar {
    display: block;
    padding: 14px 16px 0;
    background: var(--theme-other_background, #fff);
    border-bottom: 1px solid #eef2f7;
  }

  .search-list-keyword-bar .result-summary {
    margin: 0;
    padding-left: 12px;
    font-size: 14px;
  }

  .search-list-keyword-bar .result-keyword {
    font-size: 15px;
  }

  .search-list-toolbar {
    padding-left: 16px;
    padding-right: 16px;
    gap: 8px;
  }

  /* 全网搜索：网盘筛选单行展示，按屏宽均分 */
  body.page-search-list .search-pan-filter {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }

  body.page-search-list .search-pan-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  body.page-search-list .search-pan-chip {
    flex: 1 1 0;
    min-width: 0;
    min-height: 30px;
    padding: 0 4px;
    font-size: clamp(11px, 2.9vw, 12px);
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
  }

  .search-list-results.search-result-list {
    padding: 12px 12px 18px;
  }

  body.page-search-list .search-resource-footer {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-search-list .search-result-actions {
    width: 100%;
    justify-content: flex-end;
  }

  body.page-search-list .search-result-actions button,
  body.page-search-list .search-result-actions a.search-list-action-btn {
    flex: 1 1 auto;
    min-height: 38px;
    font-size: 14px;
  }

  body.page-search-list .site-footer.search-list-footer {
    padding: 20px 12px 28px;
  }

  body.page-search-list .top-nav .nav-links,
  body.page-search-list .desktop-nav-actions {
    display: none;
  }

  .search-hot-head,
  .search-hot-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.page-search-list .search-hot-tabs,
  body.page-detail .search-hot-tabs {
    gap: 6px;
    padding-bottom: 4px;
    scroll-padding-inline: 12px;
  }

  body.page-search-list .search-hot-tab,
  body.page-detail .search-hot-tab {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 10px;
    font-size: clamp(11px, 2.9vw, 13px);
    font-weight: 800;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body.page-search-list .search-hot-tab--on,
  body.page-search-list .search-hot-tab--on:hover,
  body.page-search-list .search-hot-tab--on:active,
  body.page-detail .search-hot-tab--on,
  body.page-detail .search-hot-tab--on:hover,
  body.page-detail .search-hot-tab--on:active {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
  }

  .search-hot-list a {
    grid-template-columns: 30px 52px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .search-hot-list .cover {
    width: 52px;
    height: 70px;
  }

  .search-hot-list .tt {
    font-size: 14px;
  }

  .search-hot-list .desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}

/* ========== 内容详情页 /d/:id.html ========== */
body.page-detail {
  --search-page-bg: #f5f7fb;
}

body.cinema.page-detail {
  background: #f5f6f8;
}

body.cinema.page-detail #app {
  background: transparent;
}

body.page-detail .main.detail-main {
  width: min(calc(100vw - 200px), var(--cinema-pc-content-max, 1120px));
  margin: 0 auto;
  padding: 88px 0 40px;
}

body.page-detail .detail-page-panel {
  background: var(--theme-other_background, #fff);
  border: 1px solid #e8edf3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

body.page-detail .detail-page-bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #eef2f7;
  background: color-mix(in srgb, var(--search-page-bg, #f5f7fb) 28%, var(--theme-other_background, #fff));
  color: #8a95a5;
  font-size: 13px;
  font-weight: 700;
}

body.page-detail .detail-page-bc a {
  color: #64748b;
  text-decoration: none;
}

body.page-detail .detail-page-bc a:hover {
  color: var(--theme-theme, #1769ff);
}

body.page-detail .detail-page-bc .sep {
  opacity: 0.45;
}

body.page-detail .detail-page-bc .cur {
  color: #334155;
  font-weight: 800;
}

body.page-detail .detail-resource-card {
  padding: 22px 20px 20px;
}

body.page-detail .detail-resource-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

body.page-detail .detail-resource-poster {
  flex: 0 0 auto;
  width: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  background: #f8fafc;
}

body.page-detail .detail-resource-poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

body.page-detail .detail-resource-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.page-detail .detail-resource-title {
  order: 1;
}

body.page-detail .detail-resource-meta {
  order: 2;
}

body.page-detail .detail-resource-desc {
  order: 3;
}

body.page-detail .detail-resource-code {
  order: 4;
}

body.page-detail .detail-resource-actions {
  order: 5;
}

body.page-detail .detail-resource-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  word-break: break-word;
}

body.page-detail .detail-resource-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

body.page-detail .detail-resource-meta .search-pan-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
}

body.page-detail .detail-resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-detail .detail-resource-tags .t {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

body.page-detail .detail-resource-tags .t-local {
  background: rgba(23, 105, 255, 0.08);
  color: var(--theme-theme, #1769ff);
}

body.page-detail .detail-resource-tags .t-pan {
  background: rgba(15, 23, 42, 0.05);
  color: #475569;
}

body.page-detail .detail-resource-tags .t-time {
  background: transparent;
  padding-left: 0;
  color: #94a3b8;
}

body.page-detail .detail-resource-desc {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

body.page-detail .detail-resource-code {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
}

body.page-detail .detail-resource-code strong {
  color: var(--theme-theme, #1769ff);
  font-weight: 900;
  letter-spacing: 0.04em;
}

body.page-detail .detail-resource-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

body.page-detail .search-list-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  min-width: 76px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #d9dee7;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

body.page-detail .search-list-action-btn--secondary:hover {
  border-color: color-mix(in srgb, var(--theme-theme, #1769ff) 40%, #d9dee7);
  color: var(--theme-theme, #1769ff);
}

body.page-detail .search-list-action-btn--primary {
  background: var(--theme-theme, #1769ff);
  border-color: var(--theme-theme, #1769ff);
  color: #fff;
}

body.page-detail .resource-tree-panel {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fafafc;
}

body.page-detail .resource-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

body.page-detail .resource-tree-header em {
  color: #94a3b8;
  font-style: normal;
  font-weight: 600;
}

body.page-detail .resource-tree-loading,
body.page-detail .resource-tree-empty,
body.page-detail .resource-tree-tip {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

body.page-detail .resource-tree-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ef4444;
  font-size: 13px;
}

body.page-detail .resource-tree-lines,
body.page-detail .resource-tree-body {
  max-height: 320px;
  overflow: auto;
}

body.page-detail .resource-tree-lines .tree-line-row {
  padding: 3px 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  font-family: Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

body.page-detail .detail-related {
  border-top: 1px solid #eef2f7;
  padding: 18px 20px 22px;
  background: #fbfcfe;
}

body.page-detail .detail-related-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

body.page-detail .detail-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

body.page-detail .detail-related-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef2f7;
  color: #334155;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.page-detail .detail-related-list a:hover {
  border-color: color-mix(in srgb, var(--theme-theme, #1769ff) 35%, #eef2f7);
  background: rgba(23, 105, 255, 0.03);
}

body.page-detail .detail-related-list .n {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

body.page-detail .detail-related-list .t {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-detail .site-footer.detail-page-footer {
  width: min(calc(100vw - 200px), var(--cinema-pc-content-max, 1120px));
  margin: 0 auto;
  padding: 24px 0 36px;
  color: #94a3b8;
  font-size: 13px;
}

body.cinema.cinema-night.page-detail {
  background: #0b1220;
}

body.cinema.cinema-night.page-detail .detail-page-panel {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

body.cinema.cinema-night.page-detail .detail-page-bc {
  background: rgba(15, 23, 42, 0.72);
  border-bottom-color: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

body.cinema.cinema-night.page-detail .detail-page-bc .cur,
body.cinema.cinema-night.page-detail .detail-resource-title,
body.cinema.cinema-night.page-detail .detail-related-title {
  color: #e2e8f0;
}

body.cinema.cinema-night.page-detail .detail-resource-desc,
body.cinema.cinema-night.page-detail .detail-resource-code,
body.cinema.cinema-night.page-detail .resource-tree-header,
body.cinema.cinema-night.page-detail .resource-tree-loading,
body.cinema.cinema-night.page-detail .resource-tree-empty,
body.cinema.cinema-night.page-detail .resource-tree-tip,
body.cinema.cinema-night.page-detail .resource-tree-lines .tree-line-row {
  color: #94a3b8;
}

body.cinema.cinema-night.page-detail .detail-resource-tags .t {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

body.cinema.cinema-night.page-detail .detail-resource-tags .t-local {
  background: rgba(23, 105, 255, 0.18);
  color: #93c5fd;
}

body.cinema.cinema-night.page-detail .search-list-action-btn {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

body.cinema.cinema-night.page-detail .search-list-action-btn--primary {
  background: var(--theme-theme, #1769ff);
  border-color: var(--theme-theme, #1769ff);
  color: #fff;
}

body.cinema.cinema-night.page-detail .resource-tree-panel {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.12);
}

body.cinema.cinema-night.page-detail .detail-related {
  background: rgba(15, 23, 42, 0.45);
  border-top-color: rgba(148, 163, 184, 0.12);
}

body.cinema.cinema-night.page-detail .detail-related-list a {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

body.cinema.cinema-night.page-detail .site-footer.detail-page-footer {
  color: #64748b;
}

@media (max-width: 860px) {
  body.page-detail {
    --detail-mobile-pad: 14px;
    background: #eef1f6;
  }

  body.cinema.page-detail {
    background: #eef1f6;
  }

  body.page-detail .search-list-mobile-head {
    display: block;
  }

  body.page-detail .main.detail-main {
    width: 100%;
    margin: 0;
    padding: 0 0 20px;
  }

  body.page-detail .detail-page-panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  body.page-detail .detail-page-bc {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 9px var(--detail-mobile-pad);
    font-size: 12px;
    border-bottom: none;
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.page-detail .detail-page-bc::-webkit-scrollbar {
    display: none;
  }

  body.page-detail .detail-page-bc .cur {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 52vw;
  }

  body.page-detail .detail-resource-card {
    padding: 0;
    background: #fff;
  }

  body.page-detail .detail-resource-head {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
    padding: 14px var(--detail-mobile-pad) 12px;
    background: #fff;
  }

  body.page-detail .detail-resource-poster {
    grid-column: 1;
    grid-row: 1 / span 3;
    flex: none;
    width: 104px;
    margin: 0;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    align-self: start;
  }

  body.page-detail .detail-resource-poster::after {
    display: none;
  }

  body.page-detail .detail-resource-poster img {
    display: block;
    width: 104px;
    height: 139px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
  }

  body.page-detail .detail-resource-main {
    display: contents;
  }

  body.page-detail .detail-resource-head:not(:has(.detail-resource-poster)) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-detail .detail-resource-head:not(:has(.detail-resource-poster)) .detail-resource-title,
  body.page-detail .detail-resource-head:not(:has(.detail-resource-poster)) .detail-resource-meta,
  body.page-detail .detail-resource-head:not(:has(.detail-resource-poster)) .detail-resource-actions,
  body.page-detail .detail-resource-head:not(:has(.detail-resource-poster)) .detail-resource-desc,
  body.page-detail .detail-resource-head:not(:has(.detail-resource-poster)) .detail-resource-code {
    grid-column: 1;
  }

  body.page-detail .detail-resource-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.page-detail .detail-resource-meta {
    grid-column: 2;
    grid-row: 2;
    align-items: flex-start;
    margin-bottom: 0;
  }

  body.page-detail .detail-resource-tags {
    gap: 5px;
  }

  body.page-detail .detail-resource-tags .t {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  body.page-detail .detail-resource-tags .t-time {
    padding-left: 0;
    width: 100%;
    margin-top: 2px;
  }

  body.page-detail .detail-resource-actions {
    grid-column: 2;
    grid-row: 3;
    order: unset;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 0;
    border-top: none;
  }

  body.page-detail .detail-resource-actions .search-list-action-btn {
    display: flex !important;
    width: 100%;
    min-width: 0 !important;
    max-width: none;
    min-height: 32px;
    padding: 0 2px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.page-detail .detail-resource-actions .search-list-action-btn--primary {
    min-height: 32px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(23, 105, 255, 0.2);
  }

  body.page-detail .detail-resource-desc {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 4px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 13px;
    line-height: 1.65;
    display: block;
    overflow: visible;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  body.page-detail .detail-resource-code {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(23, 105, 255, 0.05);
    border: 1px dashed rgba(23, 105, 255, 0.22);
    font-size: 13px;
  }

  body.page-detail .resource-tree-panel {
    margin: 12px var(--detail-mobile-pad) 0;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border-color: #eef2f7;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  }

  body.page-detail .resource-tree-lines,
  body.page-detail .resource-tree-body {
    max-height: 260px;
  }

  body.page-detail .detail-related {
    margin: 12px var(--detail-mobile-pad) 0;
    padding: 16px var(--detail-mobile-pad);
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  }

  body.page-detail .detail-related-title {
    margin-bottom: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.page-detail .detail-related-title::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 999px;
    background: var(--theme-theme, #1769ff);
  }

  body.page-detail .detail-related-list {
    gap: 6px;
  }

  body.page-detail .detail-related-list a {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 10px;
    border-radius: 12px;
  }

  body.page-detail .detail-related-list .n {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
  }

  body.page-detail .detail-related-list .t {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
  }

  body.page-detail .site-footer.detail-page-footer {
    width: 100%;
    padding: 16px var(--detail-mobile-pad) 12px;
    text-align: center;
  }

  body.cinema.cinema-night.page-detail {
    background: #0b1220;
  }

  body.cinema.cinema-night.page-detail .detail-resource-card {
    background: rgba(15, 23, 42, 0.92);
  }

  body.cinema.cinema-night.page-detail .detail-resource-head {
    background: rgba(15, 23, 42, 0.92);
  }

  body.cinema.cinema-night.page-detail .detail-resource-poster {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }

  body.cinema.cinema-night.page-detail .detail-page-bc {
    background: rgba(15, 23, 42, 0.92);
  }

  body.cinema.cinema-night.page-detail .detail-resource-main {
    background: transparent;
    box-shadow: none;
  }

  body.cinema.cinema-night.page-detail .detail-resource-head:not(:has(.detail-resource-poster)) .detail-resource-main {
    background: transparent;
  }

  body.cinema.cinema-night.page-detail .detail-resource-desc {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.14);
  }

  body.cinema.cinema-night.page-detail .detail-resource-code {
    background: rgba(23, 105, 255, 0.12);
    border-color: rgba(23, 105, 255, 0.28);
  }

  body.cinema.cinema-night.page-detail .detail-resource-actions {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  body.cinema.cinema-night.page-detail .resource-tree-panel,
  body.cinema.cinema-night.page-detail .detail-related {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: none;
  }

  body.cinema.cinema-night.page-detail .detail-related-list .n {
    background: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
  }
}

/* --------- 独立热榜页 /rank/<cid>/<page>.html --------- */
body.cinema.page-rank {
  --rank-page-bg: #eef1f6;
  --rank-card-bg: #fff;
  --rank-text: #1e293b;
  --rank-muted: #64748b;
  background: var(--rank-page-bg) !important;
}

body.cinema.page-rank #app {
  background: transparent;
}

/* --------- 子页/首页共用顶栏（与 index PC 头部一致）--------- */
@media (min-width: 861px) {
  body.cinema.mofa-topnav-shell > .top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid !important;
    grid-template-columns: minmax(156px, auto) auto minmax(320px, 420px) minmax(0, 1fr) auto !important;
    align-items: center;
    gap: 30px !important;
    min-height: 82px !important;
    padding: 0 max(48px, calc((100vw - var(--cinema-pc-nav-max)) / 2)) !important;
    background: rgba(245, 246, 248, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #111827 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    pointer-events: auto;
  }

  body.cinema.is-home-panel.mofa-topnav-shell > .top-nav #navHomeBtn {
    color: #0f172a;
  }

  body.cinema.mofa-topnav-shell > .top-nav .logo-button,
  body.cinema.mofa-topnav-shell > .top-nav .nav-links,
  body.cinema.mofa-topnav-shell > .top-nav .icon-btn {
    display: flex !important;
  }

  body.cinema.mofa-topnav-shell > .top-nav .logo-button {
    gap: 10px;
    min-width: 160px;
  }

  body.cinema.mofa-topnav-shell > .top-nav .logo-button strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 900;
    color: #111827;
    white-space: nowrap;
  }

  body.cinema.mofa-topnav-shell > .top-nav .nav-links {
    gap: 30px;
  }

  body.cinema.mofa-topnav-shell > .top-nav .nav-link,
  body.cinema.mofa-topnav-shell > .top-nav .desktop-nav-btn {
    min-height: 38px;
    padding: 0;
    font-size: 20px;
    font-weight: 900;
    opacity: 1;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
  }

  body.cinema.mofa-topnav-shell > .top-nav .top-search {
    min-height: 48px;
    max-width: 420px;
    border-radius: 999px;
    background: #e9edf3 !important;
    color: #8a95a5;
    box-shadow: none !important;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cinema.mofa-topnav-shell > .top-nav .top-search-wrap {
    width: min(36vw, 420px);
    min-width: 0;
    max-width: 420px;
  }

  body.cinema.mofa-topnav-shell > .top-nav .top-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
  }

  body.cinema.mofa-topnav-shell > .top-nav .top-search input {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
  }

  body.cinema.mofa-topnav-shell > .top-nav .top-search button {
    display: none !important;
  }

  body.cinema.mofa-topnav-shell > .top-nav .desktop-nav-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-width: 0;
  }

  body.cinema.mofa-topnav-shell > .top-nav .desktop-nav-btn {
    white-space: nowrap;
  }

  body.cinema.mofa-topnav-shell > .top-nav .icon-btn {
    width: 48px;
    height: 48px;
    justify-self: end;
    display: grid !important;
    place-items: center;
    background: #e9edf3;
    color: #4b5563;
    font-size: 20px;
  }

  body.cinema.cinema-night.mofa-topnav-shell > .top-nav {
    background: rgba(9, 13, 20, 0.9) !important;
    color: #edf3ff !important;
  }

  body.cinema.cinema-night.mofa-topnav-shell > .top-nav .logo-button strong,
  body.cinema.cinema-night.mofa-topnav-shell > .top-nav .nav-link,
  body.cinema.cinema-night.mofa-topnav-shell > .top-nav .desktop-nav-btn {
    color: #edf3ff;
  }

  body.cinema.cinema-night.mofa-topnav-shell > .top-nav .top-search,
  body.cinema.cinema-night.mofa-topnav-shell > .top-nav .icon-btn {
    background: rgba(17, 24, 39, 0.92);
    color: #91a1b8;
  }
}

@media (min-width: 861px) and (max-width: 1439px) {
  body.cinema.mofa-topnav-shell > .top-nav {
    grid-template-columns: minmax(138px, auto) auto minmax(300px, 460px) minmax(0, 1fr) auto !important;
    gap: 22px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  body.cinema.mofa-topnav-shell > .top-nav .nav-links {
    gap: 22px;
  }

  body.cinema.mofa-topnav-shell > .top-nav .nav-link,
  body.cinema.mofa-topnav-shell > .top-nav .desktop-nav-btn {
    font-size: 18px;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  body.cinema.mofa-topnav-shell > .top-nav {
    grid-template-columns: auto auto minmax(240px, 1fr) auto !important;
    gap: 18px !important;
  }

  body.cinema.mofa-topnav-shell > .top-nav .desktop-nav-actions {
    display: none !important;
  }

  body.cinema.mofa-topnav-shell > .top-nav .logo-button strong {
    font-size: 20px;
  }
}

body.page-rank .top-nav a,
body.page-rank .top-nav button,
body.page-detail .top-nav a,
body.page-detail .top-nav button,
body.page-search-list .top-nav a,
body.page-search-list .top-nav button {
  text-decoration: none;
}

body.page-rank .rank-page-cats .cat-chip {
  text-decoration: none !important;
}

body.page-rank .main.rank-main {
  width: min(calc(100vw - 48px), var(--cinema-pc-content-max, 1200px));
  margin: 0 auto;
  padding: 92px 0 36px;
}

body.page-rank .rank-page-panel {
  background: var(--rank-card-bg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

body.page-rank .rank-page-hero {
  padding: 18px 28px 14px;
  border-bottom: 0;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--theme-theme, #1769ff) 11%, #fff) 0%,
    #fff 48%
  );
}

body.page-rank .rank-page-bc {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--rank-muted);
}

body.page-rank .rank-page-bc a {
  color: #64748b;
  text-decoration: none;
}

body.page-rank .rank-page-bc a:hover {
  color: var(--theme-theme, #1769ff);
}

body.page-rank .rank-page-bc .cur {
  color: var(--rank-text);
  font-weight: 800;
}

body.page-rank .rank-page-bc .sep {
  opacity: 0.4;
}

body.page-rank .rank-page-meta {
  display: none !important;
}

body.page-rank .rank-page-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rank-muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

body.page-rank .rank-page-chip strong {
  color: var(--theme-theme, #1769ff);
  font-weight: 900;
}

body.page-rank .rank-page-chip--page strong {
  font-variant-numeric: tabular-nums;
}

body.page-rank .rank-page-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  line-height: 1.15;
}

body.page-rank .rank-page-cat {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: var(--rank-text);
  letter-spacing: -0.02em;
}

body.page-rank .rank-page-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 800;
  color: var(--rank-muted);
}

body.page-rank .rank-page-sub::before {
  content: "·";
  margin-right: 6px;
  opacity: 0.35;
  font-weight: 400;
}

/* 分类条：与首页 #quickCats .cat-chip 同款 */
body.page-rank .rank-page-hero {
  padding-bottom: 20px;
}

body.page-rank .rank-page-cats {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 2px 4px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
  scroll-padding-inline: 20px;
}

body.page-rank .rank-page-cats::-webkit-scrollbar {
  display: none;
}

body.page-rank .rank-page-cats .cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 72px;
  padding: 0 22px !important;
  border: 0 !important;
  outline: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  pointer-events: auto !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #8a95a5 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07) !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

body.page-rank .rank-page-cats .cat-chip.loading {
  opacity: 0.72;
  cursor: wait;
}

body.page-rank .rank-page-cats .cat-chip:hover {
  color: var(--theme-theme, #1769ff) !important;
  box-shadow: 0 6px 16px rgba(23, 105, 255, 0.14) !important;
}

body.page-rank .rank-page-cats .cat-chip.active {
  background: var(--theme-theme, #1769ff) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.page-rank .rank-page-cats .cat-chip.active:hover {
  color: #ffffff !important;
  transform: none;
}

@media (min-width: 861px) {
  body.page-rank .rank-page-cats {
    gap: 14px;
    margin-top: 20px;
    padding-right: 64px;
  }

  body.page-rank .rank-page-cats .cat-chip {
    min-height: 42px;
    height: auto !important;
    min-width: 86px;
    padding: 0 24px !important;
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  body.page-rank .rank-page-cats .cat-chip:hover {
    transform: translateY(-1px);
  }

  body.page-rank .rank-page-cats .cat-chip.active {
    box-shadow: 0 6px 18px rgba(23, 105, 255, 0.24) !important;
  }
}

body.page-rank .rank-search-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #eef2f7;
  box-shadow: none;
}

/* Vue 挂载前勿展示页内搜索区（避免分页跳转时闪现「正在搜索…」） */
body.page-rank .rank-search-panel[v-cloak] {
  display: none !important;
}

body.page-rank .rank-search-panel--collapsed .rank-search-panel-bd {
  display: none;
}

body.page-rank .search-list-head--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  border-bottom: 1px solid #eef2f7;
}

body.page-rank .rank-search-toolbar {
  padding: 12px 28px 0;
  border: 0;
}

body.page-rank .rank-search-panel-bd {
  padding-bottom: 8px;
}

body.page-rank .search-list-hint {
  padding: 12px 28px;
  margin: 0;
  font-size: 13px;
  color: var(--rank-muted);
  font-weight: 700;
}

/* 榜单列表 AJAX 切换：保留旧内容并淡化，避免整页白屏 */
body.page-rank #rankListMount {
  position: relative;
  transition: opacity 0.2s ease;
}

body.page-rank #rankListMount.rank-list-mount--loading {
  opacity: 0.42;
  pointer-events: none;
}

body.page-rank #rankListMount.rank-list-mount--loading::after {
  content: "正在加载榜单…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2;
}

/* 海报网格 */
body.page-rank .rank-page-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 24px 28px 12px;
  margin: 0;
}

body.page-rank .rank-poster-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none !important;
  color: var(--rank-text) !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.page-rank .rank-poster-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--theme-theme, #1769ff) 35%, #eef2f7);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

body.page-rank .rank-poster-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #e8edf3 0%, #f4f7fb 100%);
}

/* 懒加载封面：未就绪前隐藏，避免无 src 时浏览器先显示裂图图标 */
body.page-rank img.lazy-cover[data-src],
body.page-rank img.lazy-cover.lazy-cover--loading {
  opacity: 0;
}

body.page-rank img.lazy-cover.lazy-cover--ready {
  opacity: 1;
  transition: opacity 0.28s ease;
}

body.page-rank .rank-poster-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.page-rank .rank-poster-card:hover .rank-poster-img {
  transform: scale(1.04);
}

body.page-rank .rank-poster-img.is-broken {
  opacity: 0;
}

body.page-rank .rank-poster-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1.4;
}

body.page-rank .rank-poster-ph span {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-rank .rank-poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.35));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

body.page-rank .rank-poster-card:hover .rank-poster-shade {
  opacity: 1;
}

body.page-rank .rank-poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: rgba(30, 41, 59, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

body.page-rank .rank-poster-badge--1 {
  background: linear-gradient(135deg, #ff6b35, #ff9248);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.45);
}

body.page-rank .rank-poster-badge--2 {
  background: linear-gradient(135deg, #5b6b7c, #8b9aab);
}

body.page-rank .rank-poster-badge--3 {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

body.page-rank .rank-poster-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 14px;
}

body.page-rank .rank-poster-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--rank-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

body.page-rank .rank-poster-heat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
}

body.page-rank .rank-poster-heat i {
  font-style: normal;
  font-size: 11px;
}

/* 文字榜 */
body.page-rank .rank-page-list {
  margin: 0;
  padding: 4px 0 8px;
}

body.page-rank .rank-page-list li {
  transition: background 0.16s ease;
}

body.page-rank .rank-page-list a {
  text-decoration: none !important;
  color: inherit !important;
  padding-top: 14px;
  padding-bottom: 14px;
}

body.page-rank .rank-page-list a:hover {
  background: color-mix(in srgb, var(--theme-theme, #1769ff) 5%, var(--rank-card-bg, #fff));
}

body.page-rank .rank-page-list .tt {
  color: var(--rank-text);
  font-weight: 900;
  text-decoration: none;
}

body.page-rank .rank-page-list .desc {
  color: var(--rank-muted);
}

body.page-rank .rank-page-list .heat {
  color: #ea580c;
  text-decoration: none;
  background: rgba(234, 88, 12, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
}

body.page-rank .rank-page-empty {
  padding: 56px 28px;
  text-align: center;
  color: var(--rank-muted);
  font-weight: 700;
}

body.page-rank .rank-page-empty .search-list-action-btn {
  display: inline-flex;
  margin-top: 16px;
  text-decoration: none;
}

/* 分页 */
body.page-rank .rank-page-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 22px 28px 28px;
  border-top: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fafbfc, #fff);
  text-align: center;
}

body.page-rank .rank-page-pagination a,
body.page-rank .rank-page-pagination span {
  text-decoration: none !important;
}

body.page-rank .rank-page-pagination a.rank-pg-num,
body.page-rank .rank-page-pagination a.rank-pg-btn {
  color: #334155 !important;
}

body.page-rank .rank-pg-num {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.page-rank a.rank-pg-num:hover {
  border-color: var(--theme-theme, #1769ff) !important;
  color: var(--theme-theme, #1769ff) !important;
  box-shadow: 0 6px 18px rgba(23, 105, 255, 0.12);
}

body.page-rank .rank-pg-num.is-active {
  background: var(--theme-theme, #1769ff) !important;
  border-color: var(--theme-theme, #1769ff) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(23, 105, 255, 0.22);
  cursor: default;
}

body.page-rank .rank-pg-ellipsis {
  min-width: 28px;
  color: var(--rank-muted);
  font-weight: 800;
  letter-spacing: 1px;
  user-select: none;
}

body.page-rank .rank-pg-btn {
  min-height: 42px;
  min-width: 108px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--rank-text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.page-rank .rank-pg-btn:not(.is-disabled):hover {
  border-color: var(--theme-theme, #1769ff);
  color: var(--theme-theme, #1769ff);
  box-shadow: 0 6px 18px rgba(23, 105, 255, 0.15);
  transform: translateY(-1px);
}

body.page-rank .rank-pg-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}

body.page-rank .rank-pg-arrow {
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
}

body.page-rank .rank-pg-info {
  min-width: 72px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--rank-muted);
}

body.page-rank .rank-pg-info em {
  font-style: normal;
  font-size: 18px;
  color: var(--theme-theme, #1769ff);
}

body.page-rank .rank-pg-info span {
  margin: 0 4px;
  opacity: 0.5;
}

body.page-rank .rank-page-footer {
  width: min(calc(100vw - 48px), var(--cinema-pc-content-max, 1200px));
  margin: 20px auto 36px;
  padding: 20px 16px;
  text-align: center;
  color: var(--rank-muted);
  font-size: 12px;
  line-height: 1.7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

body.page-rank .rank-page-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

body.page-rank .rank-page-footer .footer-links a {
  color: #475569;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

body.page-rank .rank-page-footer .footer-links a:hover {
  color: var(--theme-theme, #1769ff);
}

body.page-rank .rank-page-footer .footer-copy p {
  margin: 6px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1180px) {
  body.page-rank .rank-page-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.page-rank .rank-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

@media (max-width: 860px) {
  body.cinema.page-rank {
    --rank-page-bg: #f3f5f8;
  }

  body.cinema.page-rank,
  body.cinema.page-detail,
  body.cinema.page-search-list {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.cinema.page-rank .bottom-tabs,
  body.cinema.page-detail .bottom-tabs,
  body.cinema.page-search-list .bottom-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 12;
    display: flex;
    align-items: stretch;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.page-rank .search-list-mobile-head {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #eceff3;
  }

  body.cinema.page-rank.mofa-topnav-shell > .top-nav {
    display: none !important;
  }

  body.page-rank .main.rank-main {
    width: 100%;
    padding: 0 0 20px;
  }

  body.page-rank .rank-page-panel {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    overflow: visible;
  }

  body.page-rank .rank-page-hero {
    padding: 14px 16px 10px;
  }

  body.page-rank .rank-page-bc {
    margin-bottom: 8px;
  }

  /* 移动端榜单分类：左对齐、紧凑间距、超出可横滑 */
  body.page-rank .rank-page-cats,
  body.page-rank .rank-page-cats.quick-cats {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin-bottom: 10px;
    padding-right: 12px;
    gap: 6px;
    scroll-padding-inline: 0 12px;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.page-rank .rank-page-cats .cat-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 0 !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: transparent !important;
    color: #7d8797 !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    transform: none !important;
    transition: background 0.16s ease, color 0.16s ease, opacity 0.16s ease;
  }

  body.page-rank .rank-page-cats .cat-chip:hover {
    color: var(--theme-theme, #1769ff) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.page-rank .rank-page-cats .cat-chip.active {
    min-width: 0 !important;
    padding: 0 8px !important;
    background: var(--theme-theme, #1769ff) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  body.cinema.cinema-night.page-rank .rank-page-cats .cat-chip {
    background: transparent !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
  }

  body.cinema.cinema-night.page-rank .rank-page-cats .cat-chip.active {
    background: var(--theme-theme, #1769ff) !important;
    color: #fff !important;
  }

  body.page-rank .rank-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
    padding: 16px 12px 8px;
  }

  body.page-rank .rank-poster-badge {
    top: 8px;
    left: 8px;
    min-width: 26px;
    height: 26px;
    font-size: 12px;
    border-radius: 8px;
  }

  body.page-rank .rank-poster-body {
    padding: 10px 8px 12px;
    gap: 6px;
  }

  body.page-rank .rank-poster-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  body.page-rank .rank-poster-heat {
    font-size: 11px;
    padding: 3px 8px;
  }

  body.page-rank .search-list-head--compact,
  body.page-rank .rank-search-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.page-rank .search-hot-list a {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.page-rank .rank-page-pagination {
    padding: 18px 16px 22px;
    gap: 10px;
  }

  body.page-rank .rank-pg-btn {
    min-width: 88px;
    min-height: 40px;
    font-size: 13px;
    border-radius: 10px;
  }

  body.page-rank .rank-page-footer {
    width: 100%;
    margin: 12px 0 0;
    border-radius: 0;
    background: transparent;
    padding: 16px;
  }
}

@media (max-width: 380px) {
  body.page-rank .rank-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }
}

@media (min-width: 861px) {
  body.page-rank .search-list-mobile-head {
    display: none;
  }
}

body.cinema.cinema-night.page-rank {
  --rank-page-bg: #0b1220;
  --rank-card-bg: rgba(15, 23, 42, 0.98);
  --rank-text: #edf3ff;
  --rank-muted: #94a3b8;
}

body.cinema.cinema-night.page-rank .rank-page-panel {
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

body.cinema.cinema-night.page-rank .rank-page-hero {
  border-color: rgba(148, 163, 184, 0.12);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--theme-theme, #1769ff) 18%, rgba(15, 23, 42, 0.98)) 0%,
    rgba(15, 23, 42, 0.98) 55%
  );
}

body.cinema.cinema-night.page-rank .rank-page-chip {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.14);
}

body.cinema.cinema-night.page-rank .rank-page-cats .cat-chip {
  background: rgba(30, 41, 59, 0.92) !important;
  color: #94a3b8 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

body.cinema.cinema-night.page-rank .rank-page-cats .cat-chip:hover {
  color: #bfdbfe !important;
}

body.cinema.cinema-night.page-rank .rank-page-cats .cat-chip.active {
  background: var(--theme-theme, #1769ff) !important;
  color: #fff !important;
}

body.cinema.cinema-night.page-rank .rank-page-pagination a.rank-pg-num,
body.cinema.cinema-night.page-rank .rank-page-pagination a.rank-pg-btn {
  color: #cbd5e1 !important;
}

body.cinema.cinema-night.page-rank .rank-poster-card {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(148, 163, 184, 0.14);
}

body.cinema.cinema-night.page-rank .rank-poster-title {
  color: #edf3ff;
}

body.cinema.cinema-night.page-rank .rank-page-pagination {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.98));
  border-color: rgba(148, 163, 184, 0.12);
}

body.cinema.cinema-night.page-rank .rank-pg-btn {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

body.cinema.cinema-night.page-rank .rank-pg-num {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

body.cinema.cinema-night.page-rank .rank-pg-num.is-active {
  background: var(--theme-theme, #1769ff);
  border-color: var(--theme-theme, #1769ff);
  color: #fff;
}

body.cinema.cinema-night.page-rank .search-list-mobile-head {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.14);
}

/* 子页禁用旧版 headerBox，仅保留 mofa 公共顶栏 */
body.cinema.page-detail .headerBox,
body.cinema.page-detail .headerKox,
body.cinema.page-rank .headerBox,
body.cinema.page-rank .headerKox {
  display: none !important;
}

/* 子页移动端：底部导航 + 返回顶部（与首页一致） */
@media (max-width: 520px) {
  body.cinema.page-search-list,
  body.cinema.page-detail,
  body.cinema.page-rank {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.cinema.page-search-list #app,
  body.cinema.page-detail #app,
  body.cinema.page-rank #app {
    padding-bottom: 0;
  }

  body.page-search-list .global-backtop,
  body.page-detail .global-backtop,
  body.page-rank .global-backtop {
    display: none !important;
  }

  body.cinema.page-search-list .main.search-list-main,
  body.cinema.page-detail .main.detail-main,
  body.cinema.page-rank .main.rank-main {
    padding-bottom: 12px;
  }
}

/* SEO 静态内容：保留在 HTML 供爬虫，不占视觉版面 */
.mofa-seo-panel {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mofa-seo-stats,
.mofa-seo-heading {
  margin: 0;
  font-size: 1rem;
}

.mofa-seo-tags a {
  display: inline;
  margin-right: 0.5em;
}

.mofa-seo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mofa-seo-list li {
  margin: 0;
}

.mofa-seo-meta {
  margin-left: 0.5em;
}

.mofa-friend-links {
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
}

.mofa-friend-links__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
}

.mofa-friend-links__body a {
  margin: 0 8px;
  color: inherit;
  text-decoration: none;
}

.mofa-friend-links__body a:hover {
  color: var(--theme-theme, #1769ff);
}

body.cinema.cinema-night .mofa-friend-links,
body.cinema.cinema-night .mofa-friend-links__title {
  color: rgba(255, 255, 255, 0.5);
}

.search-resource-title-link {
  color: inherit;
  text-decoration: none;
}

.search-resource-title-link:hover {
  color: var(--theme-theme, #1769ff);
}

