/* ============================================
   List Page - 二级列表页面（More 详情页）
   UI：顶部导航(返回+XenDrama标题) + Section标题 + 3列网格
   ============================================ */

#list-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: var(--z-modal, 100);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

#list-page.visible {
  transform: translateX(0);
}

/* ================================
   导航栏（返回 + XenDrama 标题）
   ================================ */
.list-nav {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  padding-top: calc(0px + env(safe-area-inset-top, 0px));
  background: #000000;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.list-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.list-back-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.list-nav-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

/* ================================
   Section 标题
   ================================ */
.list-section {
  padding: 16px 14px 12px;
}

.list-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
}

/* ================================
   3列网格
   ================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 10px 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  align-content: start;
}

/* 二级页面不显示 HOT/NEW 角标 */
#list-page .card-badge {
  display: none;
}

/* 二级页面内卡片复用首页样式 */
#list-page .drama-card {
  width: 100%;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease;
  background: transparent;
}

#list-page .drama-card:active {
  transform: scale(0.97);
}

#list-page .drama-card .card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #1c1c1e;
}

#list-page .drama-card .card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#list-page .drama-card .card-title {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  padding: 0 2px;
}

/* ================================
   骨架屏 / Spinner / 状态文字
   列表页骨架屏与真实卡片尺寸完全一致
   ================================ */
#list-page .card-skeleton {
  width: 100%;
  background: transparent;
  border-radius: 10px;
  overflow: visible;
}
#list-page .card-skeleton .sk-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #2c2c2e 25%, #3a3a3c 50%, #2c2c2e 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 10px;
}
#list-page .card-skeleton .sk-poster img {
  width: 36%;
  height: auto;
  opacity: 0.5;
}
#list-page .card-skeleton .sk-title {
  height: 17px;
  margin: 6px 2px 0;
  padding: 0;
  background: #2c2c2e;
  border-radius: 4px;
  animation: skeleton-shimmer 1.4s infinite;
}
.list-load-spinner {
  display: flex;
  justify-content: center;
  padding: 16px 0;
  width: 100%;
  grid-column: 1 / -1;
}
.list-load-spinner .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #3a3a3c;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.list-status-text {
  color: #636366;
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
  width: 100%;
  grid-column: 1 / -1;
}
