/* 浪妹视频 Vue SPA 补充样式  v20260623a */

/* ── 整站限宽480px，所有媒体查询失效 ── */
#lm-app {
  max-width: 480px !important;
  margin: 0 auto !important;
  overflow-x: hidden !important;
}

/* header 限宽居中，和内容区保持一致 */
header {
  max-width: 480px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
}

/* .row 强制手机padding，不随viewport缩放 */
#lm-app .row,
#lm-app header .row {
  padding: 0 12px !important;
  max-width: 100% !important;
}

/* header logo 垂直居中 */
header .row { align-items: center; }

/* 修复 .card-img position（原始值 sticky 会破坏绝对定位子元素） */
#lm-app .card-img {
  position: relative !important;
}

/* 强制手机3列布局，覆盖桌面端横向滚动和多列宽度 */
#lm-app .myui-vodbox-item .content {
  overflow: visible !important;
}
#lm-app .myui-vodbox-item .content .card-box {
  flex-wrap: wrap !important;
  overflow-x: visible !important;
}
#lm-app .myui-vodbox-content {
  min-width: calc(33.33% - 10px) !important;
  width: calc(33.33% - 10px) !important;
  margin: 0 5px 12px !important;
  padding: 0 !important;
  height: auto !important;
}
#lm-app .myui-vodbox-content .content-card {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
}
#lm-app .myui-vodbox-content .content-card .card-img {
  padding-top: 133% !important;
  position: relative !important;
}

/* 分类导航独占第二行 */
.lm-nav-row {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0 12px 10px;
  gap: 4px;
  scrollbar-width: none;
}
.lm-nav-row::-webkit-scrollbar { display: none; }
.lm-nav-row .nav {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 14px;
  height: 30px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  margin: 0;
}

/* 骨架屏 */
.lm-skeleton-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lm-shine 1.4s infinite;
}
.lm-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: var(--top-bg);
  position: relative;
  overflow: hidden;
}
.lm-skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lm-shine 1.4s infinite;
}
@keyframes lm-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 分页 */
.page-box { margin: 20px 0; }
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pagination .page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--top-bg);
  color: var(--font-color-6);
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
}
.pagination .page-item:hover { background: rgba(249,115,22,.25); color: #f97316; }
.pagination .page-item.active { background: #f97316; color: #fff; cursor: default; }
.pagination .page-item.disabled { opacity: .4; cursor: default; pointer-events: none; }
.pagination .page-dots { align-self: center; color: var(--font-color-5); font-size: 13px; }

/* 类型标签徽章 */
.lm-type-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(99,102,241,.88);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px 0 0 0;
  line-height: 1.6;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* 播放器加载遮罩 */
.lm-play-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  z-index: 5;
}
.lm-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: lm-spin .7s linear infinite;
}
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* 剧集按钮 */
.lm-ep-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--top-bg);
  color: var(--font-color-6);
  cursor: pointer;
  text-decoration: none;
  background: var(--playlist-bg);
  transition: background .15s, color .15s;
}
.lm-ep-btn:hover  { background: rgba(249,115,22,.2); color: #f97316; border-color: #f97316; }
.lm-ep-btn.active { background: #f97316; color: #fff; border-color: #f97316; }

/* screen-head 排序按钮 */
.screen-head .title {
  cursor: pointer;
  color: var(--font-color-5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  transition: color .15s;
}
.screen-head .title.active,
.screen-head .title:hover { color: var(--font-color); }
.screen-head .title.active span { color: #f97316; }

/* filter-ul 横向滚动（手机） */
@media (max-width: 768px) {
  .filter-ul {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* 标签页/搜索页间距 */
.lm-page-tag .card-box,
.lm-page-search .card-box {
  margin-top: 8px;
}

/* 回顶部（确保不被Vue根节点覆盖） */
#lm-app .side-top { z-index: 999; }
