/* ============================================================
   共享样式表 - 金黑配色（按 demo.html 还原）
   颜色：bg #0c0f12 / surface #1d2226 / primary #eacea1 / sub #8a8472
   ============================================================ */

:root {
  --van-primary-color: #eacea1;
  --bg: #0c0f12;
  --surface: #1d2226;
  --surface-light: #2a2f33;
  --primary: #eacea1;
  --text-main: #eacea1;
  --text-sub: #8a8472;
  --text-muted: #6a6452;
  --accent-green: #34C759;
  --radius: 12px;
}

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

html {
  background: #0c0f12;
}

body {
  background: #0c0f12;
  color: #eacea1;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  max-width: 375px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, button, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }

/* === Page Container === */
.page-container {
  min-height: 100vh;
  position: relative;
  padding-bottom: 70px;
  background: #0c0f12;
}

/* === Index Top Section === */
.index_top_3 { padding: 8px 0; }

/* === Search === */
.search-section { padding: 6px 12px; }
.van-search { padding: 5px 0; }
.van-search__content {
  background: transparent;
  height: 32px;
  border-radius: 5px;
  border: 1px solid #eacea1;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
}
.van-search__content--round { border-radius: 5px; }
.van-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.van-icon-search {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eacea1' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>");
}
.van-icon-volume-o {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23eacea1'><path d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/></svg>");
}
.van-field__control {
  flex: 1;
  background: transparent;
  border: none;
  color: #eacea1;
  font-size: 13px;
  height: 100%;
  min-width: 0;
}
.van-field__control::placeholder { color: #8a8472; }
.search-text {
  color: #eacea1;
  font-size: 13px;
  padding: 2px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* === Categories === */
.cat {
  display: flex;
  gap: 10px;
  padding: 10px 12px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat::-webkit-scrollbar { display: none; }
.catitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.catitem.active { background: #eacea1; }
.catitem .text {
  font-size: 20px;
  font-weight: 900;
  color: #eacea1;
  white-space: nowrap;
}
.catitem.active .text, .catitem .text.active { color: #0c0f12; }
/* 分类图标（后台可填 SVG 代码或图片地址） */
.cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 4px; }
.cat-icon > svg { width: 100%; height: 100%; fill: currentColor; display: block; }
img.cat-icon { object-fit: contain; }

/* === Show / Sub-filter === */
.show {
  display: flex;
  gap: 8px;
  padding: 6px 12px;
}
.show_cat {
  font-size: 13px;
  color: #eacea1;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid #eacea1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.show_cat:hover { opacity: 0.8; }
.show_cat.short { color: #0c0f12; background: #eacea1; }

/* === Notice Bar === */
.notice-section { padding: 4px 12px; }
.van-notice-bar {
  background: #353331;
  color: #eacea1;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  gap: 6px;
  overflow: hidden;
}
.van-notice-bar__wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.van-notice-bar__content {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: van-notice-bar-scroll 22s linear infinite;
}
@keyframes van-notice-bar-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* === Card List === */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
}
.card-container {
  background: #1d2226;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid rgba(234, 206, 161, 0.06);
}
.card-container:hover { transform: translateY(-1px); border-color: rgba(234, 206, 161, 0.2); }
.card-container:active { transform: scale(0.99); }
.image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a2f33, #1a1d20);
  overflow: hidden;
}
.card-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.corner-tag {
  position: absolute;
  padding: 2px 6px;
  background: rgba(0,0,0,0.65);
  color: #eacea1;
  font-size: 10px;
  border-radius: 3px;
  z-index: 1;
  line-height: 1.4;
}
.corner-tag.bottom-left { bottom: 6px; left: 6px; }
.corner-tag.bottom-right { bottom: 6px; right: 6px; }
.badge-plays {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 8px;
  background: rgba(60, 60, 60, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  border-radius: 999px;
  line-height: 1.5;
  z-index: 1;
}
.badge-dur {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  border-radius: 3px;
  line-height: 1.5;
  z-index: 1;
}
.tt-container { padding: 2px 10px 4px; background: #eacea1; }
.tt-t {
  font-size: 16px;
  color: #0c0f12;
  font-weight: 400;
  line-height: 1.2;
  min-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

/* === Finished Text === */
.van-list__finished-text {
  display: block;
  margin: 0 auto;
  width: fit-content;
  height: 40px;
  line-height: 40px;
  color: #6a6452;
  font-size: 12px;
}

/* === Floating Buttons === */
.feedback, .save {
  position: fixed;
  right: max(12px, calc(50% - 175.5px));
  padding: 6px 12px;
  background: rgba(29, 34, 38, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #eacea1;
  border-radius: 14px;
  font-size: 13px;
  z-index: 100;
  cursor: pointer;
  border: 1px solid rgba(234, 206, 161, 0.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: all 0.2s;
}
.feedback:hover, .save:hover { border-color: rgba(234, 206, 161, 0.4); }
.save { bottom: 90px; }
.feedback { bottom: 140px; }

/* === Tabbar === */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  display: flex;
  height: 50px;
  background: rgba(29, 34, 38, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(234, 206, 161, 0.1);
  z-index: 200;
}
.tabitem {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #8a8472;
  cursor: pointer;
  transition: color 0.2s;
  margin: 6px 5px;
  border: 1px solid #eacea1;
  border-radius: 10px;
}
.tabitem:active { opacity: 0.7; }
.tabitem.main {
  color: #eacea1;
  font-weight: 900;
}

/* === Play Page === */
.navi {
  padding: 10px 12px;
  color: #eacea1;
  background: #1d2226;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #2a2f33;
}
.navi::before { content: '←'; font-size: 14px; }
.media-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}
.media-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.subtitle {
  padding: 10px 12px;
  color: #eacea1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* === Purchase Section === */
.purchase-section1 { padding: 8px 12px; }
.purchase-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 12px 8px;
}
.purchase-section1 form, .purchase-section form { display: block; margin: 0; }
.purchase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  background: #1d2226;
  border-radius: 8px;
  border: 1px solid #2a2f33;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
}
.purchase-item:hover {
  border-color: rgba(234, 206, 161, 0.5);
  transform: translateY(-1px);
}
.purchase-item:active { transform: scale(0.98); }
.purchase-item.active {
  border-color: #eacea1;
  background: linear-gradient(135deg, #1d2226, #2a2f33);
}
.purchase-item.whole {
  flex-direction: row;
  justify-content: space-between;
  padding: 12px 14px;
  border-color: #eacea1;
  background: linear-gradient(135deg, #1d2226, #252830);
}
.purchase-item .lable {
  color: #eacea1;
  font-size: 12px;
}
.purchase-item .price {
  color: #eacea1;
  font-size: 14px;
  font-weight: 700;
}
.purchase-item .info {
  color: #8a8472;
  font-size: 10px;
}
.purchase-item.whole .lable { font-size: 14px; font-weight: 600; }
.purchase-item.whole .price { font-size: 16px; }
.purchase-item.whole .info { font-size: 11px; }

/* === Recommendation === */
.yigou {
  padding: 14px 12px 6px;
  color: #eacea1;
  font-size: 13px;
  font-weight: 600;
}

/* === Section Title (for category sections) === */
.section-title {
  padding: 14px 12px 4px;
  color: #eacea1;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 13px;
  background: #eacea1;
  border-radius: 2px;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6a6452;
  font-size: 13px;
}

/* === Pagination === */
.pagination {
  display: flex;
  width: 100%;
  gap: 10px;
  margin: 16px 12px 8px;
  padding-right: 24px;
}
.page-btn {
  flex: 1;
  padding: 10px 0;
  background: #1d2226;
  border-radius: 8px;
  text-decoration: none;
  color: #8a8472;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid #2a2f33;
  transition: all 0.2s;
}
.page-btn:hover:not(.disabled) { background: #2a2f33; color: #eacea1; }
.page-btn.active {
  background: #eacea1;
  color: #0c0f12;
  border-color: transparent;
}
.page-btn.disabled { opacity: 0.3; pointer-events: none; }
.page-tip {
  text-align: center;
  font-size: 11px;
  color: #6a6452;
  margin: 0 0 16px;
  padding: 0 12px;
}

/* === Page Modal (pagination jump) === */
.page-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.page-modal.show { display: flex; }
.page-modal-box {
  width: 100%;
  max-width: 320px;
  background: #1d2226;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #2a2f33;
}
.page-modal-title {
  text-align: center;
  font-size: 15px;
  margin-bottom: 16px;
  color: #eacea1;
  font-weight: 600;
}
.page-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px;
}
.page-item {
  padding: 10px 0;
  text-align: center;
  background: #2a2f33;
  border-radius: 8px;
  color: #8a8472;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.page-item:hover { background: #353331; color: #eacea1; }
.page-item.current {
  background: #eacea1;
  color: #0c0f12;
  font-weight: 700;
}
.page-close {
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  background: #2a2f33;
  border: 1px solid #2a2f33;
  border-radius: 10px;
  color: #eacea1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.page-close:hover { background: #353331; }

/* === Toast === */
#toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(29, 34, 38, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #eacea1;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 2000;
  border: 1px solid rgba(234, 206, 161, 0.2);
  white-space: nowrap;
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* === Footer === */
.site-footer {
  max-width: 375px;
  margin: 20px auto 0;
  padding: 14px 12px 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  color: #6a6452;
}
.site-footer a {
  color: #eacea1;
  text-decoration: none;
  margin: 0 4px;
}
.site-footer a:hover { opacity: 0.8; }

/* === Responsive (always mobile-style) === */
@media (max-width: 480px) {
  body { max-width: 100%; }
  .tabbar { max-width: 100%; }
  .feedback, .save { right: 12px; }
}

/* === 2 列卡片网格（首页/收藏/已购） === */
.card-list.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 0;
}

/* === 4 列分类网格（首页） === */
.cat.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 6px;
  overflow: visible;
  padding: 10px 12px 6px;
}
.cat.grid4 .catitem { flex-shrink: 1; min-width: 0; }
.cat.grid4 .catitem .text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* === 影片购买弹窗 === */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.video-modal.show { display: flex; }
.video-modal-box {
  width: 100%;
  max-width: 340px;
  background: #1d2226;
  border: 1px solid #2a2f33;
  border-radius: 16px;
  padding: 16px;
  max-height: 88vh;
  overflow-y: auto;
}
.vm-notice {
  background: #353331;
  color: #eacea1;
  font-size: 12px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.vm-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #2a2f33;
  margin-bottom: 10px;
}
.vm-title {
  font-size: 14px;
  color: #eacea1;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.4;
}
.vm-plans { display: flex; flex-direction: column; gap: 8px; }
.vm-plans form { display: block; margin: 0; }
.vm-empty { text-align: center; color: #6a6452; font-size: 12px; padding: 12px; }
.vm-close {
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  background: #2a2f33;
  border: 1px solid #2a2f33;
  border-radius: 10px;
  color: #eacea1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.vm-close:hover { background: #353331; }
.vm-actions { display: flex; gap: 8px; margin-top: 14px; }
.vm-actions .vm-close { margin-top: 0; flex: 1; width: auto; }
.vm-fav {
  flex: 1;
  padding: 12px;
  background: #2a2f33;
  border: 1px solid #2a2f33;
  border-radius: 10px;
  color: #eacea1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.vm-fav.on {
  background: linear-gradient(135deg, #eacea1, #d4bd93);
  color: #0c0f12;
  border-color: transparent;
}

/* === 分享弹窗 === */
.share-title {
  font-size: 17px;
  font-weight: 700;
  color: #eacea1;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.4;
}
.share-sub {
  font-size: 12px;
  color: #8a8472;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}
.share-domain {
  background: #2a2f33;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #eacea1;
  text-align: center;
  word-break: break-all;
  line-height: 1.5;
}
.share-divider {
  height: 1px;
  background: #2a2f33;
  margin: 16px 0;
}
.share-token-label {
  font-size: 12px;
  color: #8a8472;
  text-align: center;
  margin-bottom: 6px;
}
.share-token {
  font-size: 20px;
  font-weight: 700;
  color: #eacea1;
  text-align: center;
  letter-spacing: 3px;
  background: #2a2f33;
  border-radius: 10px;
  padding: 12px 14px;
  word-break: break-all;
}
.share-hint {
  font-size: 11px;
  color: #8a8472;
  text-align: center;
  line-height: 1.5;
  margin: 8px 0 12px;
}
.share-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #2a2f33;
  border: 1px solid #2a2f33;
  border-radius: 10px;
  color: #eacea1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover { background: #353331; }
.share-btn:active { transform: scale(0.99); }
.share-btn.primary {
  background: linear-gradient(135deg, #eacea1, #d4bd93);
  color: #0c0f12;
  border-color: transparent;
}
.share-btn.ghost { background: transparent; }

/* === 账号页 === */
.acc-head {
  padding: 18px 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.acc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eacea1, #b9a377);
  color: #0c0f12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.acc-name { font-size: 16px; font-weight: 600; color: #eacea1; }
.acc-sub { font-size: 12px; color: #8a8472; margin-top: 2px; }
.acc-card {
  margin: 0 12px 12px;
  background: #1d2226;
  border: 1px solid #2a2f33;
  border-radius: 12px;
  padding: 4px 14px;
}
.acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #2a2f33;
  font-size: 13px;
}
.acc-row:last-child { border-bottom: none; }
.acc-row .k { color: #8a8472; flex-shrink: 0; }
.acc-row .v { color: #eacea1; word-break: break-all; text-align: right; }
.acc-row .v.muted { color: #8a8472; }
.acc-copy {
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 11px;
  color: #eacea1;
  background: #2a2f33;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.acc-btns {
  display: flex;
  gap: 10px;
  padding: 4px 12px 12px;
}
.acc-btn {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #2a2f33;
  background: #1d2226;
  color: #eacea1;
  transition: all 0.2s;
}
.acc-btn:active { transform: scale(0.98); }
.acc-btn.primary {
  background: linear-gradient(135deg, #eacea1, #d4bd93);
  color: #0c0f12;
  border-color: transparent;
}

/* === 登录/注册弹窗（页内） === */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 13px;
  color: #8a8472;
  background: #2a2f33;
  border-radius: 8px;
  cursor: pointer;
}
.auth-tab.on { color: #0c0f12; background: #eacea1; font-weight: 600; }
.auth-pane { display: none; }
.auth-pane.on { display: block; }
.auth-pane input {
  width: 100%;
  height: 42px;
  background: #2a2f33;
  border: 1px solid #2a2f33;
  border-radius: 10px;
  color: #eacea1;
  font-size: 14px;
  padding: 0 12px;
  margin-bottom: 10px;
}
.auth-pane input:focus { border-color: rgba(234, 206, 161, 0.4); }
.auth-submit {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #eacea1;
  color: #0c0f12;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.auth-tip { font-size: 11px; color: #6a6452; text-align: center; margin-top: 10px; line-height: 1.6; }

/* === 首页置顶搜索 === */
.index_top_3 { padding: 0; }
.search-section {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(12, 15, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 12px 6px;
}

/* === 紧凑 4 列分类（默认两行，多出收起） === */
.cat.grid4 { gap: 2px 4px; padding: 4px 10px 2px; }
.cat.grid4 .catitem { gap: 0; padding: 0; }
.cat.grid4.collapsed .catitem:nth-child(n+9) { display: none; }

/* === 首页按钮行（最新影片 / 展开全部分类） === */
.show { padding: 4px 12px 6px; }

/* === 影片流无限下拉哨兵 === */
.stream-sentinel { width: 100%; height: 1px; }
