:root {
  --sp-bg: #2b3038;
  --sp-panel: #364153;
  --sp-card: #2c3446;
  --sp-text: #edf2fb;
  --sp-muted: #9eaac0;
  --sp-line: rgba(255, 255, 255, 0.08);
  --sp-brand: #22cbb2;
}

/* Detail Page V2 */
.sp-detail-page .spd-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #333d4f, #2c3546);
}

.sp-detail-page .spd-side {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
}

.sp-detail-page .spd-poster {
  border-radius: 10px;
  overflow: hidden;
  background: #1f2634;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-detail-page .spd-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-detail-page .spd-side-actions {
  display: grid;
  gap: 8px;
}

.sp-detail-page .spd-side-actions .sp-btn {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
}

.sp-detail-page .spd-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 10px;
}

.sp-detail-page .spd-main h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-detail-page .spd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-detail-page .spd-chip {
  height: 22px;
  border-radius: 999px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: #bed0ea;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-detail-page .spd-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #9eb4d3;
}

.sp-detail-page .spd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sp-detail-page .spd-stats article {
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-detail-page .spd-stats small {
  color: #8ea4c4;
  font-size: 11px;
}

.sp-detail-page .spd-stats strong {
  margin-top: 4px;
  display: block;
  color: #e8f0ff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-detail-page .spd-desc {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.58;
  color: #c8d8f1;
  background: rgba(18, 24, 35, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 126px;
  overflow: auto;
}

.sp-detail-page .spd-status {
  margin: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #9cb2d1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-detail-page .spd-panel {
  padding: 12px;
}

.sp-detail-page .sp-drive-list {
  margin-top: 8px;
}

.sp-detail-page .sp-drive-item {
  border-radius: 8px;
  background: rgba(27, 34, 47, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

.sp-detail-page .sp-drive-index {
  min-width: 48px;
  height: 20px;
  font-size: 10px;
}

.sp-detail-page .sp-drive-url {
  margin-top: 4px;
  font-size: 11px;
}

.sp-detail-page .sp-grid.spd-recommend-grid {
  margin-top: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.is-light.sp-detail-page .spd-card {
  background: linear-gradient(180deg, #f7fbff, #ecf4ff);
}

body.is-light.sp-detail-page .spd-chip {
  color: #4f6d95;
  background: rgba(78, 106, 146, 0.1);
  border-color: rgba(58, 84, 121, 0.18);
}

body.is-light.sp-detail-page .spd-meta {
  color: #5f7ca2;
}

body.is-light.sp-detail-page .spd-stats article {
  background: rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.16);
}

body.is-light.sp-detail-page .spd-stats small {
  color: #6c87ab;
}

body.is-light.sp-detail-page .spd-stats strong {
  color: #2d496a;
}

body.is-light.sp-detail-page .spd-desc {
  background: rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.16);
  color: #4f6c94;
}

body.is-light.sp-detail-page .spd-status {
  background: rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.16);
  color: #5f7ca2;
}

body.is-light.sp-detail-page .sp-drive-item {
  background: #fff;
  border-color: rgba(58, 84, 121, 0.16);
}

@media (max-width: 1040px) {
  .sp-detail-page .spd-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .sp-detail-page .spd-main h1 {
    font-size: 26px;
  }

  .sp-detail-page .sp-grid.spd-recommend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sp-detail-page .spd-card {
    grid-template-columns: 1fr;
  }

  .sp-detail-page .spd-poster {
    max-width: 190px;
  }

  .sp-detail-page .spd-side-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .sp-detail-page .spd-main h1 {
    font-size: 22px;
  }

  .sp-detail-page .spd-stats {
    grid-template-columns: 1fr;
  }

  .sp-detail-page .sp-grid.spd-recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

body.theme-switching {
  animation: sp-theme-breathe 0.9s ease;
}

.sp-theme-ripple {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  pointer-events: none;
  z-index: 9999;
  background: var(--ripple-color, rgba(255, 255, 255, 0.86));
  animation: sp-theme-ripple 0.95s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes sp-theme-breathe {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.985);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sp-theme-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(95);
    opacity: 0;
  }
}

html[data-theme-transition='1']::view-transition-group(root) {
  animation-duration: 0.95s;
}

html[data-theme-transition='1']::view-transition-old(root) {
  animation: sp-theme-vt-old 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

html[data-theme-transition='1']::view-transition-new(root) {
  animation: sp-theme-vt-new 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  clip-path: circle(0 at var(--theme-switch-x, 50%) var(--theme-switch-y, 50%));
}

@keyframes sp-theme-vt-old {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
  }
  100% {
    opacity: 0.34;
    transform: scale(0.985);
    filter: saturate(0.9);
  }
}

@keyframes sp-theme-vt-new {
  0% {
    clip-path: circle(0 at var(--theme-switch-x, 50%) var(--theme-switch-y, 50%));
    opacity: 0.8;
  }
  100% {
    clip-path: circle(150vmax at var(--theme-switch-x, 50%) var(--theme-switch-y, 50%));
    opacity: 1;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.sp-wrap {
  width: 1280px;
  max-width: calc(100% - 28px);
  margin: 0 auto;
}

.sp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--sp-line);
  background: rgba(29, 34, 46, 0.9);
  backdrop-filter: blur(9px);
}

.sp-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  min-width: 106px;
}

.sp-brand img {
  width: 106px;
  display: none;
}

.sp-brand-name {
  display: none;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  color: #f0f4fe;
  letter-spacing: 1px;
}

.sp-brand.has-logo img {
  display: block;
}

.sp-brand.has-name .sp-brand-name {
  display: block;
}

.sp-brand.is-empty {
  visibility: hidden;
}

.sp-header-title {
  font-size: 16px;
  color: #d7e1f4;
  opacity: 0.95;
}

.sp-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-icon-btn,
.sp-pill {
  border: 1px solid var(--sp-line);
  background: rgba(255, 255, 255, 0.08);
  color: #ebf1fd;
}

.sp-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-pill {
  height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}

.sp-pill-blue {
  border-color: transparent;
  background: linear-gradient(135deg, #4aa8ff, #567dff);
  color: #fff;
}

.sp-main {
  padding: 18px 0 24px;
}

.sp-footer {
  padding: 0 0 22px;
}

.sp-footer-inner {
  border-radius: 12px;
  border: 1px solid var(--sp-line);
  background: rgba(31, 38, 52, 0.62);
  padding: 12px 14px;
  text-align: center;
}

.sp-footer-inner p {
  margin: 0;
}

.sp-footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: #dce6f7;
}

.sp-footer-links {
  margin-top: 6px !important;
  font-size: 11px;
  color: #a1b4cf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sp-footer-links a {
  color: #a1b4cf;
  transition: color 0.18s ease;
}

.sp-footer-links a + a::before {
  content: "·";
  display: inline-block;
  margin: 0 8px 0 0;
  color: #91a8c8;
}

.sp-footer-links a:hover {
  color: #d8e6fb;
}

.sp-footer-copy {
  margin-top: 6px !important;
  font-size: 12px;
  color: #9fb2cd;
}

.sp-footer-note {
  margin-top: 4px !important;
  font-size: 12px;
  color: #90a3bf;
}

.sp-panel {
  border-radius: 12px;
  border: 1px solid var(--sp-line);
  background: linear-gradient(180deg, #3b4659 0%, #323c4e 100%);
}

.sp-search-hero {
  padding: 14px;
}

.sp-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 92px;
  gap: 10px;
}

.sp-search-input,
.sp-search-select {
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 28, 40, 0.55);
  color: #ecf3ff;
  font-size: 14px;
  outline: none;
  padding: 0 13px;
}

.sp-search-input::placeholder {
  color: #9eabc2;
}

.sp-search-btn {
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #34d8be, #2fa9ff);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.sp-hotline {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.sp-hotline b {
  font-size: 12px;
  color: #9fb2d0;
  font-weight: 600;
}

.sp-hotline a {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #c9d6ef;
}

.sp-summary {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 37, 50, 0.58);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-summary p {
  margin: 0;
  font-size: 13px;
  color: #adc0de;
}

.sp-summary em {
  font-style: normal;
  color: #38d0b9;
}

.sp-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sp-search-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.sp-search-row {
  border-radius: 10px;
  border: 1px solid var(--sp-line);
  background: rgba(28, 35, 48, 0.8);
  padding: 10px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.sp-search-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #202736;
  aspect-ratio: 2 / 3;
}

.sp-search-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-search-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(28, 36, 52, 0.92), rgba(26, 34, 48, 0.98));
  color: #6f839f;
  font-size: 24px;
}

.sp-search-thumb.has-cover .sp-search-ph {
  display: none;
}

.sp-search-thumb.is-error .sp-search-ph {
  display: flex;
}

.sp-search-thumb.is-error .sp-search-cover {
  display: none;
}

.sp-search-ph span {
  font-size: 12px;
  color: #7e92ae;
}

.sp-search-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 7px;
}

.sp-search-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: #eef4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-search-title a {
  color: inherit;
}

.sp-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-search-meta span {
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #b8c8e2;
  background: rgba(255, 255, 255, 0.08);
}

.sp-search-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #a8bbd8;
  max-height: 60px;
  overflow: hidden;
}

.sp-search-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-width: 106px;
}

.sp-search-side .sp-btn {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.sp-search-side .sp-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.sp-search-side .sp-btn-fetch {
  border-color: transparent;
  background: linear-gradient(135deg, #34d8be, #2fa9ff);
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 169, 255, 0.26);
}

.sp-search-side .sp-btn-detail {
  border-color: rgba(130, 155, 193, 0.38);
  background: transparent;
  color: #d9e6ff;
  box-shadow: none;
}

.sp-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(28, 35, 48, 0.82);
  border: 1px solid var(--sp-line);
}

.sp-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #202736;
}

.sp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-cover-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(28, 36, 52, 0.92), rgba(26, 34, 48, 0.98));
  color: #6f839f;
  font-size: 24px;
}

.sp-cover-ph span {
  font-size: 12px;
  color: #7e92ae;
}

.sp-cover.has-cover .sp-cover-ph {
  display: none;
}

.sp-cover.is-error .sp-cover-ph {
  display: flex;
}

.sp-cover.is-error img {
  display: none;
}

.sp-badge-left,
.sp-badge-right {
  position: absolute;
  top: 0;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.sp-badge-left {
  left: 0;
  border-radius: 0 0 8px 0;
  background: linear-gradient(135deg, #ff676f, #ff9a5c);
  max-width: 62%;
}

.sp-badge-right {
  right: 0;
  border-radius: 0 0 0 8px;
  background: rgba(18, 25, 36, 0.86);
  max-width: 58%;
}

.sp-body {
  padding: 10px;
}

.sp-title {
  display: block;
  font-size: 16px;
  line-height: 1.28;
  min-height: 41px;
  color: #f0f5ff;
  overflow: hidden;
}

.sp-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #98abc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-desc {
  margin: 6px 0 0;
  height: 34px;
  font-size: 12px;
  line-height: 1.4;
  color: #9aabc5;
  overflow: hidden;
}

.sp-row-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.sp-btn {
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #d2dff5;
  padding: 0 10px;
  cursor: pointer;
}

.sp-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #44a7ff, #5d78ff);
  color: #fff;
}

.sp-empty {
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: #a5b2c8;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.sp-transfer-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 12, 20, 0.72);
  backdrop-filter: blur(9px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.sp-transfer-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 40% at 22% 18%, rgba(77, 154, 255, 0.16), transparent 62%),
    radial-gradient(34% 30% at 78% 82%, rgba(78, 217, 183, 0.12), transparent 66%);
  pointer-events: none;
}

.sp-transfer-mask[hidden] {
  display: none;
}

.sp-transfer-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(128, 158, 203, 0.28);
  background: linear-gradient(165deg, rgba(65, 78, 101, 0.96), rgba(53, 64, 85, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  padding: 20px 20px 18px;
  position: relative;
  animation: spTransferPop 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.sp-transfer-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #e3edff;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sp-transfer-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.16);
}

.sp-transfer-dialog h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.sp-transfer-title {
  margin: 8px 0 0;
  color: #c1d0e8;
  font-size: clamp(16px, 2.4vw, 30px);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-transfer-loading {
  margin-top: 14px;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: clamp(15px, 1.9vw, 29px);
  color: #d4e2f8;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.12) 15%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0.12) 45%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-size: 220% 100%;
  animation: spTransferLoading 1.8s linear infinite;
}

@keyframes spTransferLoading {
  0% {
    background-position: 150% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

.sp-transfer-error {
  margin-top: 14px;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: clamp(15px, 1.9vw, 28px);
  color: #ffd2d2;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 130, 130, 0.32);
}

.sp-transfer-result {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.sp-transfer-link {
  border-radius: 12px;
  border: 1px solid rgba(177, 199, 232, 0.25);
  background: rgba(255, 255, 255, 0.08);
  padding: 13px 16px;
  font-size: clamp(14px, 1.7vw, 28px);
  line-height: 1.45;
  color: #e4efff;
  word-break: break-all;
}

.sp-transfer-actions {
  display: flex;
  gap: 10px;
}

.sp-transfer-actions .sp-btn {
  min-width: 130px;
  height: 40px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.sp-transfer-qr {
  margin-top: 2px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 12px 10px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.sp-transfer-qr img {
  width: 218px;
  height: 218px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.sp-transfer-qr small {
  color: #adc2df;
  font-size: 14px;
}

.sp-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.sp-detail-backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--sp-detail-cover, none), radial-gradient(120% 90% at 80% 20%, rgba(85, 143, 255, 0.16), transparent 55%);
  background-size: cover, cover;
  background-position: center, center;
  filter: blur(16px) saturate(0.72);
  transform: scale(1.16);
  opacity: 0.42;
}

.sp-detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 22, 33, 0.98) 0%, rgba(17, 25, 37, 0.9) 42%, rgba(18, 26, 38, 0.96) 100%);
}

.sp-detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.sp-detail-poster {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #202736;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.sp-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-detail-main {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto auto;
  gap: 10px;
  min-width: 0;
}

.sp-detail-main h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-detail-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  color: #c6d8f3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sp-detail-meta {
  color: #abc0df;
  font-size: 12px;
  line-height: 1.5;
}

.sp-detail-desc {
  margin: 0;
  padding: 12px 13px;
  border-radius: 10px;
  background: rgba(18, 25, 37, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d3e0f5;
  line-height: 1.55;
  font-size: 13px;
  max-height: 132px;
  overflow: auto;
}

.sp-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sp-detail-stats article {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 10px;
}

.sp-detail-stats small {
  display: block;
  color: #9bb0cd;
  font-size: 11px;
}

.sp-detail-stats strong {
  display: block;
  margin-top: 4px;
  color: #edf4ff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-detail-actions {
  display: flex;
  gap: 10px;
}

.sp-detail-status {
  border-radius: 8px;
  padding: 8px 10px;
  color: #a8bedf;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.sp-section-panel {
  padding: 14px;
}

.sp-drive-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.sp-drive-item {
  border-radius: 10px;
  border: 1px solid var(--sp-line);
  background: rgba(28, 35, 48, 0.78);
  padding: 10px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sp-drive-main {
  min-width: 0;
}

.sp-drive-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-drive-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  color: #ffe2cf;
  background: linear-gradient(135deg, #ff7f6c, #ff9d6f);
}

.sp-drive-name {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d7e4f8;
  font-weight: 600;
  font-size: 13px;
}

.sp-drive-url {
  margin: 6px 0 0;
  color: #8fa7c8;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-drive-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-drive-tags span {
  font-size: 11px;
  color: #9fb3d0;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 2px 8px;
}

.sp-section {
  margin-top: 12px;
}

.sp-section-head {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-section-head h2 {
  margin: 0;
  font-size: 20px;
}

.sp-section-head small {
  color: #9db0ce;
  font-size: 12px;
}

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

body.is-light {
  --sp-bg: #edf3fb;
  --sp-panel: #f4f8ff;
  --sp-card: #ffffff;
  --sp-text: #22364f;
  --sp-muted: #607b9f;
  --sp-line: rgba(58, 84, 121, 0.18);
  background: #edf3fb;
  color: #22364f;
}

body.is-light .sp-header {
  background: rgba(245, 250, 255, 0.95);
  border-bottom-color: rgba(58, 84, 121, 0.16);
}

body.is-light .sp-header-title {
  color: #2f496d;
}

body.is-light .sp-brand-name {
  color: #213a59;
}

body.is-light .sp-brand.has-logo img {
  filter: drop-shadow(0 1px 2px rgba(15, 33, 56, 0.45));
  opacity: 0.98;
}

body.is-light .sp-icon-btn,
body.is-light .sp-pill {
  background: rgba(78, 106, 146, 0.1);
  color: #385274;
}

body.is-light .sp-footer-inner {
  border-color: rgba(58, 84, 121, 0.16);
  background: rgba(247, 251, 255, 0.96);
}

body.is-light .sp-footer-brand {
  color: #2e496d;
}

body.is-light .sp-footer-copy {
  color: #5c779b;
}

body.is-light .sp-footer-note {
  color: #6d86a6;
}

body.is-light .sp-footer-links,
body.is-light .sp-footer-links a {
  color: #6d87aa;
}

body.is-light .sp-footer-links a:hover {
  color: #2f4b6e;
}

body.is-light .sp-search-hero {
  border-color: rgba(58, 84, 121, 0.18);
  background: linear-gradient(180deg, #f6faff 0%, #ecf3ff 100%);
}

body.is-light .sp-search-input,
body.is-light .sp-search-select {
  background: #fff;
  color: #2d4669;
  border-color: rgba(58, 84, 121, 0.19);
}

body.is-light .sp-hotline a {
  background: rgba(78, 106, 146, 0.14) !important;
  color: #2f4d77 !important;
  border: 1px solid rgba(58, 84, 121, 0.2);
}

body.is-light .sp-hotline b {
  color: #2f4c74;
}

body.is-light #hotKeywords a {
  color: #2f4d77 !important;
  background: rgba(78, 106, 146, 0.14) !important;
  border: 1px solid rgba(58, 84, 121, 0.2);
}

body.is-light .sp-summary {
  background: #f7fbff;
  border-color: rgba(58, 84, 121, 0.16);
}

body.is-light .sp-summary p {
  color: #476488;
}

body.is-light .sp-card,
body.is-light .sp-drive-item {
  background: #fff;
}

body.is-light .sp-search-row {
  background: #fff;
  border-color: rgba(58, 84, 121, 0.2);
  box-shadow: 0 2px 8px rgba(36, 64, 104, 0.06);
}

body.is-light .sp-search-title {
  color: #213c5e;
}

body.is-light .sp-search-meta span {
  color: #436188;
  background: rgba(75, 103, 148, 0.14);
}

body.is-light .sp-search-desc {
  color: #4a678d;
}

body.is-light .sp-search-input::placeholder {
  color: #7890b2;
}

body.is-light .sp-search-ph {
  background: linear-gradient(180deg, #eaf1fb, #deebfa);
  color: #7992b7;
}

body.is-light .sp-title {
  color: #26405f;
}

body.is-light .sp-meta,
body.is-light .sp-desc {
  color: #5f7ca0;
}

body.is-light .sp-btn {
  border-color: rgba(58, 84, 121, 0.2);
  background: #eef4ff;
  color: #375273;
}

body.is-light .sp-search-side .sp-btn-fetch {
  border-color: transparent;
  background: linear-gradient(135deg, #34d8be, #2fa9ff);
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 169, 255, 0.22);
}

body.is-light .sp-search-side .sp-btn-detail {
  border-color: rgba(58, 84, 121, 0.22);
  background: transparent;
  color: #3d5c84;
  box-shadow: none;
}

body.is-light .sp-detail-desc {
  background: #f4f8ff;
  color: #4a668d;
}

body.is-light .sp-detail-backdrop::after {
  background: linear-gradient(90deg, rgba(245, 250, 255, 0.95) 0%, rgba(236, 245, 255, 0.88) 46%, rgba(242, 248, 255, 0.96) 100%);
}

body.is-light .sp-detail-chip {
  color: #4f6d95;
  background: rgba(78, 106, 146, 0.12);
  border-color: rgba(58, 84, 121, 0.2);
}

body.is-light .sp-detail-meta {
  color: #5f7ca2;
}

body.is-light .sp-detail-stats article {
  background: rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.18);
}

body.is-light .sp-detail-stats small {
  color: #6d87ac;
}

body.is-light .sp-detail-stats strong {
  color: #294463;
}

body.is-light .sp-detail-status {
  color: #5f7ca2;
  background: rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.18);
}

body.is-light .sp-drive-name {
  color: #345172;
}

body.is-light .sp-drive-url {
  color: #6a85aa;
}

body.is-light .sp-drive-index {
  color: #a2462e;
  background: linear-gradient(135deg, #ffd3b6, #ffc8a2);
}

body.is-light .sp-drive-tags span {
  background: rgba(68, 98, 141, 0.1);
  color: #5a769b;
}

body.is-light .sp-empty {
  background: #f7fbff;
  color: #5e7a9d;
  border-color: rgba(58, 84, 121, 0.2);
}

body.is-light .sp-transfer-mask {
  background: rgba(22, 36, 56, 0.32);
}

body.is-light .sp-transfer-dialog {
  border-color: rgba(58, 84, 121, 0.22);
  background: linear-gradient(165deg, #f8fbff, #edf4ff);
  box-shadow: 0 24px 60px rgba(24, 56, 96, 0.18);
}

body.is-light .sp-transfer-close {
  border-color: rgba(58, 84, 121, 0.24);
  background: rgba(78, 106, 146, 0.14);
  color: #3a587f;
}

body.is-light .sp-transfer-title {
  color: #5a769a;
}

body.is-light .sp-transfer-loading {
  color: #4d6b92;
  background:
    linear-gradient(100deg, rgba(120, 151, 201, 0.12) 15%, rgba(120, 151, 201, 0.2) 30%, rgba(120, 151, 201, 0.12) 45%),
    rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.18);
}

body.is-light .sp-transfer-error {
  color: #a44444;
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(220, 96, 96, 0.24);
}

body.is-light .sp-transfer-link {
  border-color: rgba(58, 84, 121, 0.22);
  background: rgba(78, 106, 146, 0.08);
  color: #3e5d86;
}

body.is-light .sp-transfer-qr {
  border-color: rgba(58, 84, 121, 0.2);
  background: rgba(78, 106, 146, 0.06);
}

body.is-light .sp-transfer-qr small {
  color: #5e7a9d;
}

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

  .sp-grid-recommend {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .sp-search-form {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .sp-search-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .sp-search-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sp-search-side .sp-btn {
    width: 100%;
  }

  .sp-detail-hero-inner {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .sp-detail-main h1 {
    font-size: 24px;
  }

  .sp-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-grid-recommend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sp-wrap {
    max-width: calc(100% - 18px);
  }

  .sp-header-title {
    display: none;
  }

  .sp-actions .sp-pill {
    display: none;
  }

  .sp-main {
    padding-top: 12px;
  }

  .sp-footer {
    padding-bottom: 16px;
  }

  .sp-footer-inner {
    padding: 10px 12px;
  }

  .sp-footer-brand {
    font-size: 13px;
  }

  .sp-footer-links {
    font-size: 10px;
    gap: 8px;
  }

  .sp-footer-copy,
  .sp-footer-note {
    font-size: 11px;
  }

  .sp-grid {
    grid-template-columns: 1fr;
  }

  .sp-search-row {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .sp-search-thumb {
    aspect-ratio: 2 / 3;
  }

  .sp-search-title {
    font-size: 15px;
  }

  .sp-search-desc {
    font-size: 12px;
    line-height: 1.45;
    max-height: 54px;
  }

  .sp-transfer-dialog {
    width: 100%;
    border-radius: 14px;
    padding: 14px 14px 12px;
  }

  .sp-transfer-close {
    width: 34px;
    height: 34px;
    top: 9px;
    right: 9px;
    font-size: 18px;
  }

  .sp-transfer-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .sp-transfer-loading,
  .sp-transfer-error,
  .sp-transfer-link {
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .sp-transfer-qr {
    padding: 10px 8px 8px;
    gap: 6px;
  }

  .sp-transfer-qr img {
    width: 170px;
    height: 170px;
    padding: 8px;
  }

  .sp-transfer-qr small {
    font-size: 12px;
  }

  .sp-detail-main h1 {
    font-size: 24px;
  }

  .sp-detail-hero {
    padding: 10px 9px;
  }

  .sp-detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .sp-detail-poster {
    max-width: 198px;
  }

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

  .sp-grid-recommend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-transfer-actions .sp-btn {
    min-width: 0;
    flex: 1;
  }
}

/* Detail V3 */
.sp-detail-v3 .spd3-hero {
  padding: 14px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #333e51, #2e3749);
}

.sp-detail-v3 .spd3-left {
  display: grid;
  gap: 8px;
  align-content: start;
}

.sp-detail-v3 .spd3-poster {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1f2634;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-detail-v3 .spd3-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-detail-v3 .spd3-left .sp-btn {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
}

.sp-detail-v3 .spd3-right {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.sp-detail-v3 .spd3-right h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-detail-v3 .spd3-meta {
  margin: 0;
  color: #a3b8d6;
  font-size: 12px;
  line-height: 1.5;
}

.sp-detail-v3 .spd3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-detail-v3 .spd3-chip {
  height: 22px;
  border-radius: 999px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: #c0d1ea;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.sp-detail-v3 .spd3-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sp-detail-v3 .spd3-stats > div {
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-detail-v3 .spd3-stats small {
  color: #8ea4c4;
  font-size: 11px;
}

.sp-detail-v3 .spd3-stats strong {
  display: block;
  margin-top: 4px;
  color: #ecf3ff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-detail-v3 .spd3-desc {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.58;
  color: #c8d8f1;
  background: rgba(18, 24, 35, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 124px;
  overflow: auto;
}

.sp-detail-v3 .spd3-status {
  margin: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #9cb2d1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-detail-v3 .spd3-panel {
  padding: 12px;
}

.sp-detail-v3 .sp-drive-list {
  margin-top: 8px;
}

.sp-detail-v3 .sp-drive-item {
  border-radius: 8px;
  background: rgba(27, 34, 47, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

.sp-detail-v3 .sp-drive-index {
  min-width: 48px;
  height: 20px;
  font-size: 10px;
}

.sp-detail-v3 .sp-drive-url {
  margin-top: 4px;
  font-size: 11px;
}

.sp-detail-v3 .sp-grid.spd3-recommend {
  margin-top: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.is-light.sp-detail-v3 .spd3-hero {
  background: linear-gradient(180deg, #f7fbff, #ecf4ff);
}

body.is-light.sp-detail-v3 .spd3-meta {
  color: #5f7ca2;
}

body.is-light.sp-detail-v3 .spd3-chip {
  color: #4f6d95;
  border-color: rgba(58, 84, 121, 0.18);
  background: rgba(78, 106, 146, 0.1);
}

body.is-light.sp-detail-v3 .spd3-stats > div {
  background: rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.16);
}

body.is-light.sp-detail-v3 .spd3-stats small {
  color: #6c87ab;
}

body.is-light.sp-detail-v3 .spd3-stats strong {
  color: #2d496a;
}

body.is-light.sp-detail-v3 .spd3-desc {
  background: rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.16);
  color: #4f6c94;
}

body.is-light.sp-detail-v3 .spd3-status {
  background: rgba(78, 106, 146, 0.08);
  border-color: rgba(58, 84, 121, 0.16);
  color: #5f7ca2;
}

body.is-light.sp-detail-v3 .sp-drive-item {
  background: #fff;
  border-color: rgba(58, 84, 121, 0.16);
}

@media (max-width: 1040px) {
  .sp-detail-v3 .spd3-hero {
    grid-template-columns: 186px minmax(0, 1fr);
  }

  .sp-detail-v3 .spd3-right h1 {
    font-size: 24px;
  }

  .sp-detail-v3 .sp-grid.spd3-recommend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sp-detail-v3 .spd3-hero {
    grid-template-columns: 1fr;
  }

  .sp-detail-v3 .spd3-poster {
    max-width: 190px;
  }

  .sp-detail-v3 .spd3-left {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .sp-detail-v3 .spd3-poster {
    grid-column: 1 / -1;
  }

  .sp-detail-v3 .spd3-right h1 {
    font-size: 21px;
  }

  .sp-detail-v3 .spd3-stats {
    grid-template-columns: 1fr;
  }

  .sp-detail-v3 .sp-grid.spd3-recommend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Detail V4 */
.sp-detail-v4 .sp-main {
  padding-top: 16px;
}

.sp-detail-v4 {
  --sp-bg: #292e36;
  --sp-text: #d6dbe3;
  --sp-line: rgba(255, 255, 255, 0.08);
  background: #292e36 !important;
}

.sp-detail-v4 .sp-header {
  background: rgba(31, 35, 42, 0.98) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sp-detail-v4 .sp-header-title {
  color: #c6cdd7;
}

.sp-detail-v4 .sp-icon-btn,
.sp-detail-v4 .sp-pill {
  background: rgba(255, 255, 255, 0.04);
  color: #d5dbe4;
  border-color: rgba(255, 255, 255, 0.09);
}

.sp-detail-v4 .sp-panel {
  border-radius: 14px;
  border: none !important;
  background: #363d47 !important;
  box-shadow: none !important;
}

.sp-detail-v4 .spd4-shell {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background: #3a424d !important;
}

.sp-detail-v4 .spd4-glow {
  display: none !important;
}

.sp-detail-v4 .spd4-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.sp-detail-v4 .spd4-media {
  display: grid;
  gap: 10px;
  align-content: start;
}

.sp-detail-v4 .spd4-poster {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: none !important;
  background: #1f2634;
  box-shadow: none !important;
}

.sp-detail-v4 .spd4-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-detail-v4 .spd4-side-actions {
  display: grid;
  gap: 8px;
}

.sp-detail-v4 .spd4-side-actions .sp-btn {
  width: 100%;
  height: 38px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.sp-detail-v4 .spd4-main {
  min-width: 0;
  display: grid;
  gap: 11px;
  align-content: start;
}

.sp-detail-v4 .spd4-main-actions {
  display: flex;
  justify-content: flex-end;
}

.sp-detail-v4 .spd4-main-actions .sp-btn {
  min-width: 132px;
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.sp-detail-v4 .spd4-main h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-detail-v4 .spd4-meta {
  margin: 0;
  color: #a3acb9;
  font-size: 12px;
  line-height: 1.55;
}

.sp-detail-v4 .spd4-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sp-detail-v4 .spd4-chip {
  display: inline-flex;
  align-items: center;
  height: 23px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  color: #bbc5d2;
  border: none !important;
  background: rgba(21, 26, 34, 0.34);
  box-shadow: none !important;
}

.sp-detail-v4 .spd4-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sp-detail-v4 .spd4-stats article {
  border-radius: 10px;
  padding: 10px 11px;
  border: none !important;
  background: rgba(70, 81, 97, 0.34);
  box-shadow: none !important;
}

.sp-detail-v4 .spd4-stats small {
  display: block;
  font-size: 11px;
  color: #949daa;
}

.sp-detail-v4 .spd4-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: #edf1f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-detail-v4 .spd4-desc-box {
  border-radius: 10px;
  padding: 11px 12px;
  border: none !important;
  background: rgba(30, 36, 45, 0.68);
  box-shadow: none !important;
}

.sp-detail-v4 .spd4-desc-box h3 {
  margin: 0 0 7px;
  font-size: 14px;
  color: #d8dee8;
}

.sp-detail-v4 .spd4-desc {
  margin: 0;
  max-height: 120px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.58;
  color: #b9c2cf;
}

.sp-detail-v4 .spd4-status {
  margin: 0;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  color: #9ea9b7;
  border: none !important;
  background: rgba(65, 74, 88, 0.3);
  box-shadow: none !important;
}

.sp-detail-v4 .spd4-panel {
  padding: 13px;
}

.sp-detail-v4 .sp-section {
  margin-top: 11px;
}

.sp-detail-v4 .sp-section-head {
  margin-bottom: 9px;
}

.sp-detail-v4 .sp-section-head h2 {
  font-size: 18px;
}

.sp-detail-v4 .sp-section-head small {
  color: #8d97a5;
}

.sp-detail-v4 .sp-drive-list {
  margin-top: 8px;
}

.sp-detail-v4 .sp-drive-item {
  border-radius: 9px;
  background: #252d37;
  border: none !important;
  box-shadow: none !important;
}

.sp-detail-v4 .sp-drive-index {
  min-width: 46px;
  height: 20px;
  border-radius: 6px;
  font-size: 10px;
}

.sp-detail-v4 .sp-drive-url {
  margin-top: 4px;
  font-size: 11px;
}

.sp-detail-v4 .sp-grid.spd4-recommend {
  margin-top: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sp-detail-v4 .spd4-recommend .sp-card {
  background: #303741 !important;
  border: none !important;
  box-shadow: none !important;
}

.sp-detail-v4 .spd4-recommend .sp-cover {
  background: #343c49 !important;
  border: none !important;
  box-shadow: none !important;
}

.sp-detail-v4 .spd4-recommend .sp-body {
  background: #1d2530 !important;
}

.sp-detail-v4 .spd4-recommend .sp-title {
  min-height: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #d8dfe9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-detail-v4 .spd4-recommend .sp-meta {
  color: #8f99a8;
}

.sp-detail-v4 .spd4-recommend .sp-desc {
  color: #a8b2bf;
}

.sp-detail-v4 .spd4-recommend .sp-cover-ph {
  background: #343c49;
  color: #6f7e95;
}

.sp-detail-v4 .spd4-recommend .sp-cover-ph span {
  color: #8594a9;
}

.sp-detail-v4 .sp-btn-primary {
  background: linear-gradient(135deg, #29c69a, #2ea8df);
}

body.sp-detail-v4,
body.sp-detail-v4 .sp-main {
  background: #292e36 !important;
}

.sp-detail-v4 .sp-header {
  border-bottom: none !important;
}

.sp-detail-v4 .spd4-recommend .sp-badge-left {
  background: linear-gradient(135deg, #ff6b57, #ff8a67);
}

.sp-reco-loading {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 212px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(90, 139, 214, 0.12), transparent 66%),
    rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #c3d0e2;
  text-align: center;
}

.sp-reco-loader {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}

.sp-reco-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(138, 175, 225, 0.32);
  border-top-color: #39d0ad;
  border-right-color: #5f9cff;
  animation: spRecoSpinV2 1s linear infinite;
}

.sp-reco-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72a6ff;
  animation: spRecoDotPulse 1.3s ease-in-out infinite;
}

.sp-reco-dot-a {
  top: 4px;
  left: 22px;
}

.sp-reco-dot-b {
  top: 36px;
  left: 7px;
  animation-delay: 0.2s;
}

.sp-reco-dot-c {
  top: 36px;
  right: 7px;
  animation-delay: 0.4s;
}

.sp-reco-loading p {
  margin: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.sp-reco-loading p strong {
  font-size: 14px;
  color: #e7eefb;
  letter-spacing: 0.2px;
}

.sp-reco-loading p span {
  font-size: 12px;
  color: #9db0cb;
}

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

@keyframes spRecoDotPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

body.is-light.sp-detail-v4 .spd4-shell {
  background:
    radial-gradient(120% 92% at 100% 0%, rgba(104, 155, 255, 0.17), transparent 62%),
    radial-gradient(74% 66% at 0% 100%, rgba(92, 190, 170, 0.14), transparent 66%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

body.is-light.sp-detail-v4 .spd4-glow {
  opacity: 0.2;
  filter: blur(17px) saturate(0.74);
}

body.is-light.sp-detail-v4 .spd4-main h1 {
  color: #234263;
}

body.is-light.sp-detail-v4 .spd4-meta {
  color: #5f7ca2;
}

body.is-light.sp-detail-v4 .spd4-chip {
  color: #4f6d95;
  border-color: rgba(58, 84, 121, 0.19);
  background: rgba(78, 106, 146, 0.1);
}

body.is-light.sp-detail-v4 .spd4-stats article {
  border-color: rgba(58, 84, 121, 0.16);
  background: rgba(78, 106, 146, 0.08);
}

body.is-light.sp-detail-v4 .spd4-stats small {
  color: #6d87ad;
}

body.is-light.sp-detail-v4 .spd4-stats strong {
  color: #2d4a6c;
}

body.is-light.sp-detail-v4 .spd4-desc-box {
  border-color: rgba(58, 84, 121, 0.16);
  background: rgba(78, 106, 146, 0.08);
}

body.is-light.sp-detail-v4 .spd4-desc-box h3 {
  color: #3a587f;
}

body.is-light.sp-detail-v4 .spd4-desc {
  color: #4f6c93;
}

body.is-light.sp-detail-v4 .spd4-status {
  color: #5f7ca2;
  border-color: rgba(58, 84, 121, 0.16);
  background: rgba(78, 106, 146, 0.08);
}

body.is-light.sp-detail-v4 .sp-section-head small {
  color: #6a86ab;
}

body.is-light.sp-detail-v4 .sp-drive-item {
  background: #fff;
  border-color: rgba(58, 84, 121, 0.16);
}

body.is-light.sp-detail-v4,
body.is-light.sp-detail-v4 .sp-main {
  background: #edf3fb !important;
  color: #22364f;
}

body.is-light.sp-detail-v4 .sp-header {
  background: rgba(245, 250, 255, 0.95) !important;
  border-bottom: 1px solid rgba(58, 84, 121, 0.14) !important;
}

body.is-light.sp-detail-v4 .sp-header-title {
  color: #3f5c83;
}

body.is-light.sp-detail-v4 .sp-icon-btn,
body.is-light.sp-detail-v4 .sp-pill {
  background: rgba(78, 106, 146, 0.1);
  color: #385274;
  border-color: rgba(58, 84, 121, 0.14);
}

body.is-light.sp-detail-v4 .sp-panel {
  background: #f5f9ff !important;
  border: 1px solid rgba(58, 84, 121, 0.14) !important;
  box-shadow: 0 8px 20px rgba(61, 88, 128, 0.08) !important;
}

body.is-light.sp-detail-v4 .spd4-shell {
  background:
    radial-gradient(120% 92% at 100% 0%, rgba(104, 155, 255, 0.17), transparent 62%),
    radial-gradient(74% 66% at 0% 100%, rgba(92, 190, 170, 0.14), transparent 66%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%) !important;
}

body.is-light.sp-detail-v4 .spd4-recommend .sp-card {
  background: #ffffff !important;
  border: 1px solid rgba(66, 91, 129, 0.16) !important;
}

body.is-light.sp-detail-v4 .spd4-recommend .sp-cover {
  background: #e5edf9 !important;
  border: 1px solid rgba(66, 91, 129, 0.14) !important;
}

body.is-light.sp-detail-v4 .spd4-recommend .sp-body {
  background: #f1f6ff !important;
}

body.is-light.sp-detail-v4 .sp-reco-loading {
  border-color: rgba(58, 84, 121, 0.23);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(111, 155, 230, 0.16), transparent 68%),
    rgba(255, 255, 255, 0.76);
}

body.is-light.sp-detail-v4 .sp-reco-ring {
  border-color: rgba(88, 118, 170, 0.24);
  border-top-color: #22be9d;
  border-right-color: #4d89f0;
}

body.is-light.sp-detail-v4 .sp-reco-dot {
  background: #5f8fdf;
}

body.is-light.sp-detail-v4 .sp-reco-loading p strong {
  color: #2d496e;
}

body.is-light.sp-detail-v4 .sp-reco-loading p span {
  color: #5d769a;
}

@media (max-width: 1120px) {
  .sp-detail-v4 .spd4-grid {
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 14px;
  }

  .sp-detail-v4 .spd4-main h1 {
    font-size: 24px;
  }

  .sp-detail-v4 .sp-grid.spd4-recommend {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sp-detail-v4 .spd4-grid {
    grid-template-columns: 1fr;
  }

  .sp-detail-v4 .spd4-media {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .sp-detail-v4 .spd4-side-actions {
    align-content: start;
  }

  .sp-detail-v4 .spd4-main h1 {
    font-size: 22px;
  }

  .sp-detail-v4 .spd4-main-actions {
    justify-content: flex-start;
  }

  .sp-detail-v4 .spd4-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-detail-v4 .sp-grid.spd4-recommend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sp-detail-v4 .spd4-shell {
    padding: 10px;
  }

  .sp-detail-v4 .spd4-media {
    grid-template-columns: 1fr;
  }

  .sp-detail-v4 .spd4-poster {
    max-width: 190px;
  }

  .sp-detail-v4 .spd4-side-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-detail-v4 .spd4-main h1 {
    font-size: 20px;
  }

  .sp-detail-v4 .spd4-main-actions .sp-btn {
    min-width: 120px;
  }

  .sp-detail-v4 .spd4-stats {
    grid-template-columns: 1fr;
  }

  .sp-detail-v4 .sp-grid.spd4-recommend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Transfer Modal V2 (override) */
.sp-transfer-mask {
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(12px);
}

.sp-transfer-mask::before {
  background:
    radial-gradient(48% 40% at 22% 16%, rgba(72, 132, 224, 0.16), transparent 66%),
    radial-gradient(36% 34% at 82% 84%, rgba(64, 184, 156, 0.14), transparent 70%);
}

.sp-transfer-dialog {
  width: min(500px, calc(100% - 20px));
  border-radius: 18px;
  border: 1px solid rgba(154, 179, 216, 0.24);
  background:
    radial-gradient(110% 105% at 2% -8%, rgba(111, 154, 228, 0.16), transparent 58%),
    linear-gradient(160deg, rgba(68, 80, 103, 0.98), rgba(56, 66, 87, 0.98));
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.48);
  padding: 16px 16px 14px;
  display: grid;
  gap: 10px;
}

.sp-transfer-head {
  margin-right: 44px;
  display: grid;
  gap: 4px;
}

.sp-transfer-dialog h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #edf3fe;
  letter-spacing: 0.1px;
}

.sp-transfer-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #d6e1f2;
  font-weight: 500;
}

.sp-transfer-close {
  width: 44px;
  height: 44px;
  right: 12px;
  top: 12px;
  font-size: 19px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #dce7f7;
}

.sp-transfer-loading {
  margin-top: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  animation: none;
}

.sp-transfer-loader {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-top-color: #2ed2aa;
  border-right-color: #4e9dff;
  animation: spTransferSpinV2 0.88s linear infinite;
  flex: 0 0 34px;
}

.sp-transfer-loader::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(99, 176, 255, 0.38);
  animation: spTransferSpinV2R 1.4s linear infinite;
}

.sp-transfer-loader i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #46d1b0;
  box-shadow: 0 0 10px rgba(70, 209, 176, 0.75);
}

.sp-transfer-loading-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sp-transfer-loading-main b {
  font-size: 15px;
  line-height: 1.4;
  color: #f3f7ff;
  font-weight: 700;
}

.sp-transfer-loading-main p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #c7d5ec;
}

.sp-transfer-loading-steps {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.sp-transfer-loading-steps span {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  animation: spTransferStepPulse 1.3s ease-in-out infinite;
}

.sp-transfer-loading-steps span:nth-child(2) {
  animation-delay: 0.18s;
}

.sp-transfer-loading-steps span:nth-child(3) {
  animation-delay: 0.36s;
}

.sp-transfer-result {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.sp-transfer-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.sp-transfer-link-wrap {
  display: grid;
  gap: 7px;
}

.sp-transfer-link-label {
  font-size: 11px;
  color: #a9bddd;
  letter-spacing: 0.1px;
}

.sp-transfer-link {
  border-radius: 12px;
  border: 1px solid rgba(177, 199, 232, 0.26);
  background: rgba(255, 255, 255, 0.09);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #e8f0ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.sp-transfer-actions {
  display: flex;
  gap: 8px;
}

.sp-transfer-actions .sp-btn {
  min-width: 0;
  flex: 1;
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.sp-transfer-qr {
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 8px 8px;
  gap: 7px;
  justify-items: center;
}

.sp-transfer-qr img {
  width: 140px;
  height: 140px;
  border-radius: 9px;
  padding: 8px;
}

.sp-transfer-qr small {
  font-size: 12px;
  color: #b8cae6;
}

.sp-transfer-error {
  margin-top: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

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

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

@keyframes spTransferStepPulse {
  0%,
  100% {
    opacity: 0.36;
    transform: scaleX(0.94);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

body.is-light .sp-transfer-dialog {
  border-color: rgba(67, 98, 144, 0.22);
  background:
    radial-gradient(110% 105% at 2% -8%, rgba(111, 154, 228, 0.19), transparent 58%),
    linear-gradient(160deg, rgba(246, 251, 255, 0.98), rgba(235, 244, 255, 0.98));
}

body.is-light .sp-transfer-close {
  border-color: rgba(67, 98, 144, 0.2);
  background: rgba(76, 108, 156, 0.12);
  color: #38557c;
}

body.is-light .sp-transfer-title {
  color: #4e6d96;
}

body.is-light .sp-transfer-loading {
  border-color: rgba(67, 98, 144, 0.19);
  background: rgba(83, 118, 168, 0.1);
}

body.is-light .sp-transfer-loading-main b {
  color: #2f4c72;
}

body.is-light .sp-transfer-loading-main p {
  color: #5f7da3;
}

body.is-light .sp-transfer-link-label {
  color: #617d9f;
}

body.is-light .sp-transfer-link {
  border-color: rgba(67, 98, 144, 0.2);
  background: rgba(96, 127, 172, 0.1);
  color: #2d4a70;
}

body.is-light .sp-transfer-qr {
  border-color: rgba(67, 98, 144, 0.2);
  background: rgba(96, 127, 172, 0.08);
}

body.is-light .sp-transfer-qr small {
  color: #5e7a9d;
}

@media (max-width: 820px) {
  .sp-transfer-dialog {
    width: min(500px, calc(100% - 16px));
    padding: 12px 12px 10px;
    border-radius: 16px;
    gap: 10px;
  }

  .sp-transfer-head {
    margin-right: 42px;
    gap: 3px;
  }

  .sp-transfer-dialog h3 {
    font-size: 15px;
  }

  .sp-transfer-title {
    font-size: 13px;
  }

  .sp-transfer-close {
    width: 43px;
    height: 43px;
    right: 10px;
    top: 10px;
    font-size: 20px;
  }

  .sp-transfer-loading {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    border-radius: 12px;
    padding: 11px;
  }

  .sp-transfer-loader {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .sp-transfer-loader::after {
    inset: -5px;
  }

  .sp-transfer-loading-main b {
    font-size: 15px;
  }

  .sp-transfer-loading-main p {
    font-size: 13px;
  }

  .sp-transfer-loading-steps span {
    width: 20px;
  }

  .sp-transfer-link {
    font-size: 12px;
    padding: 10px 11px;
  }

  .sp-transfer-actions .sp-btn {
    min-width: 0;
    flex: 1;
    height: 35px;
    font-size: 12px;
  }

  .sp-transfer-qr img {
    width: 132px;
    height: 132px;
  }
}

/* Mobile 370 baseline tune */
@media (max-width: 640px) {
  .sp-wrap {
    max-width: calc(100% - 12px);
  }

  .sp-header-inner {
    height: 54px;
    gap: 8px;
  }

  .sp-brand {
    min-width: 0;
    max-width: min(48vw, 180px);
    overflow: hidden;
  }

  .sp-brand img {
    width: 76px;
  }

  .sp-brand-name {
    font-size: 18px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sp-actions {
    gap: 6px;
  }

  .sp-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 13px;
  }

  .sp-main {
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .sp-search-hero {
    padding: 10px;
  }

  .sp-search-form {
    gap: 8px;
  }

  .sp-search-input,
  .sp-search-select,
  .sp-search-btn {
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
  }

  .sp-search-input,
  .sp-search-select {
    padding: 0 10px;
  }

  .sp-search-btn {
    font-weight: 600;
  }

  .sp-hotline {
    margin-top: 8px;
    gap: 6px;
  }

  .sp-hotline b,
  .sp-hotline a {
    font-size: 11px;
  }

  .sp-hotline a {
    height: 20px;
    padding: 0 7px;
    border-radius: 5px;
  }

  .sp-summary {
    margin-top: 10px;
    padding: 8px 10px;
    gap: 4px;
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-summary p {
    font-size: 12px;
  }

  .sp-search-list {
    gap: 8px;
  }

  .sp-search-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    align-items: start;
  }

  .sp-search-thumb {
    border-radius: 7px;
    aspect-ratio: 2 / 3;
  }

  .sp-search-main {
    gap: 5px;
  }

  .sp-search-title {
    font-size: 14px;
  }

  .sp-search-meta span {
    font-size: 10px;
    padding: 2px 6px;
  }

  .sp-search-desc {
    font-size: 11px;
    line-height: 1.4;
    max-height: 46px;
  }

  .sp-search-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
  }

  .sp-search-side .sp-btn {
    height: 30px;
    border-radius: 7px;
    font-size: 11px;
    padding: 0 8px;
  }

  .sp-grid {
    gap: 8px;
  }

  .sp-body {
    padding: 8px;
  }

  .sp-title {
    font-size: 13px;
    min-height: 34px;
  }

  .sp-meta {
    margin-top: 4px;
    font-size: 11px;
  }

  .sp-desc {
    margin-top: 4px;
    height: 30px;
    font-size: 11px;
  }

  .sp-footer {
    padding-bottom: 12px;
  }

  .sp-footer-inner {
    padding: 9px 10px;
  }

  .sp-footer-brand {
    font-size: 12px;
  }

  .sp-footer-links {
    font-size: 10px;
    gap: 6px;
  }

  .sp-footer-links a + a::before {
    margin-right: 6px;
  }

  .sp-footer-copy,
  .sp-footer-note {
    font-size: 10px;
  }

  .sp-transfer-dialog {
    width: min(500px, calc(100% - 12px));
    border-radius: 12px;
    padding: 10px 10px 9px;
    gap: 8px;
  }

  .sp-transfer-head {
    margin-right: 38px;
    gap: 2px;
  }

  .sp-transfer-dialog h3 {
    font-size: 14px;
  }

  .sp-transfer-title {
    font-size: 12px;
  }

  .sp-transfer-close {
    width: 34px;
    height: 34px;
    right: 8px;
    top: 8px;
    font-size: 17px;
  }

  .sp-transfer-loading {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
    border-radius: 9px;
  }

  .sp-transfer-loader {
    width: 24px;
    height: 24px;
  }

  .sp-transfer-loading-main b {
    font-size: 13px;
  }

  .sp-transfer-loading-main p {
    font-size: 11px;
  }

  .sp-transfer-loading-steps span {
    width: 16px;
  }

  .sp-transfer-link-wrap {
    gap: 5px;
  }

  .sp-transfer-link-label {
    font-size: 10px;
  }

  .sp-transfer-link {
    border-radius: 9px;
    padding: 8px 9px;
    font-size: 11px;
    line-height: 1.35;
  }

  .sp-transfer-actions {
    gap: 6px;
  }

  .sp-transfer-actions .sp-btn {
    height: 32px;
    border-radius: 8px;
    font-size: 11px;
  }

  .sp-transfer-qr {
    border-radius: 10px;
    padding: 8px 6px 6px;
    gap: 5px;
  }

  .sp-transfer-qr img {
    width: 120px;
    height: 120px;
    padding: 6px;
  }

  .sp-transfer-qr small {
    font-size: 10px;
  }

  .sp-detail-v4 .sp-main {
    padding-top: 10px;
  }

  .sp-detail-v4 .spd4-shell {
    padding: 10px;
    border-radius: 10px;
  }

  .sp-detail-v4 .spd4-grid {
    gap: 10px;
  }

  .sp-detail-v4 .spd4-media {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .sp-detail-v4 .spd4-poster {
    max-width: none;
    border-radius: 9px;
  }

  .sp-detail-v4 .spd4-side-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sp-detail-v4 .spd4-side-actions .sp-btn {
    height: 32px;
    border-radius: 8px;
    font-size: 12px;
  }

  .sp-detail-v4 .spd4-main {
    gap: 8px;
  }

  .sp-detail-v4 .spd4-main h1 {
    font-size: 19px;
    line-height: 1.3;
  }

  .sp-detail-v4 .spd4-meta {
    font-size: 11px;
  }

  .sp-detail-v4 .spd4-chip {
    height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .sp-detail-v4 .spd4-main-actions {
    justify-content: flex-start;
  }

  .sp-detail-v4 .spd4-main-actions .sp-btn {
    min-width: 112px;
    height: 32px;
    border-radius: 8px;
    font-size: 12px;
  }

  .sp-detail-v4 .spd4-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .sp-detail-v4 .spd4-stats article {
    border-radius: 8px;
    padding: 8px;
  }

  .sp-detail-v4 .spd4-stats small {
    font-size: 10px;
  }

  .sp-detail-v4 .spd4-stats strong {
    margin-top: 3px;
    font-size: 12px;
  }

  .sp-detail-v4 .spd4-desc-box {
    border-radius: 8px;
    padding: 9px;
  }

  .sp-detail-v4 .spd4-desc-box h3 {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .sp-detail-v4 .spd4-desc {
    font-size: 12px;
    line-height: 1.45;
    max-height: 112px;
  }

  .sp-detail-v4 .spd4-status {
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .sp-detail-v4 .spd4-panel {
    padding: 9px;
    border-radius: 10px;
  }

  .sp-detail-v4 .sp-section {
    margin-top: 9px;
  }

  .sp-detail-v4 .sp-section-head {
    margin-bottom: 7px;
  }

  .sp-detail-v4 .sp-section-head h2 {
    font-size: 15px;
  }

  .sp-detail-v4 .sp-section-head small {
    font-size: 10px;
  }

  .sp-detail-v4 .sp-drive-item {
    border-radius: 8px;
  }

  .sp-detail-v4 .sp-drive-index {
    min-width: 40px;
    height: 18px;
    border-radius: 5px;
    font-size: 9px;
  }

  .sp-detail-v4 .sp-drive-url {
    font-size: 10px;
  }

  .sp-detail-v4 .sp-grid.spd4-recommend {
    margin-top: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sp-detail-v4 .spd4-recommend .sp-cover {
    border-radius: 7px 7px 0 0;
  }

  .sp-detail-v4 .spd4-recommend .sp-body {
    padding: 7px;
  }

  .sp-detail-v4 .spd4-recommend .sp-title {
    font-size: 12px;
  }

  .sp-detail-v4 .spd4-recommend .sp-meta {
    margin-top: 3px;
    font-size: 10px;
  }
}

@media (max-width: 370px) {
  .sp-wrap {
    max-width: calc(100% - 8px);
  }

  .sp-header-inner {
    height: 52px;
  }

  .sp-brand img {
    width: 70px;
  }

  .sp-brand-name {
    font-size: 16px;
  }

  .sp-search-input,
  .sp-search-select,
  .sp-search-btn {
    height: 38px;
    font-size: 12px;
  }

  .sp-search-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
  }

  .sp-search-title {
    font-size: 13px;
  }

  .sp-search-side .sp-btn {
    height: 28px;
    font-size: 10px;
  }

  .sp-detail-v4 .spd4-media {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .sp-detail-v4 .spd4-main h1 {
    font-size: 17px;
  }

  .sp-detail-v4 .spd4-stats {
    grid-template-columns: 1fr;
  }

  .sp-transfer-dialog {
    width: calc(100% - 10px);
    padding: 9px;
  }
}
