/* ============================================================
   ewave-ui.css — eWave / 162425 模板 UI 组件
   影片卡片 / 标签 / 按钮 / 面包屑 / 分页 / 详情页
   ============================================================ */

/* ── Movie cards (网格 + 卡片，补充 vgo-base-css) ── */
.movie-grid,
.card-grid,
.video-grid,
.movies-list,
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.movie-card,
.card,
.movie-item,
.tb-film,
.pg-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.movie-card:hover,
.card:hover,
.movie-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--primary-rgb), .5);
}
.movie-card a,
.card a {
  display: block;
  color: inherit;
}
.movie-card img,
.card img,
.movie-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--bg-soft);
}
.movie-card .title,
.movie-card h3,
.card .title,
.card h3,
.info h3 {
  padding: 8px 10px 4px;
  font-size: .9rem;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.movie-card .meta,
.movie-card .remarks,
.info .meta,
.info .remarks {
  padding: 0 10px 10px;
  font-size: .76rem;
  color: var(--text-muted);
}
.movie-card .tag,
.badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .7rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.movie-card { position: relative; }

/* ── List page items (list/搜索) ── */
.list-item,
.search-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: border-color .2s, background .2s;
}
.list-item:hover,
.search-item:hover {
  border-color: rgba(var(--primary-rgb), .5);
  background: var(--bg-card-hover);
}
.list-item img,
.search-item img {
  width: 96px;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.list-item .info,
.search-item .info { flex: 1; min-width: 0; }
.list-item .info h3,
.search-item .info h3 { padding: 0; margin: 0 0 6px; font-size: 1rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 10px 0;
  font-size: .85rem;
  color: var(--text-muted);
}
.breadcrumb .sep { opacity: .5; margin: 0 2px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:last-child { color: var(--text); }

/* ── Buttons ── */
.btn,
.btn-primary,
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
}
.btn:hover,
.btn-primary:hover,
.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), .4);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg-card); border-color: var(--primary); }

/* ── Pagination ── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 24px 0;
  list-style: none;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .88rem;
}
.pagination a:hover,
.pagination .active,
.pagination .current {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}

/* ── Tags cloud ── */
.tag-cloud,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.tag-cloud a,
.tags a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  transition: all .2s;
}
.tag-cloud a:hover,
.tags a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}

/* ── Detail / Play page ── */
.detail-info,
.play-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.detail-info .poster,
.play-info .poster {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-info .info,
.play-info .info { flex: 1; min-width: 260px; }
.detail-info h1,
.play-info h1,
.detail h1,
.play h1 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: var(--text);
}
.detail-info dl,
.play-info dl { margin: 8px 0; }
.detail-info dt,
.play-info dt {
  display: inline-block;
  color: var(--text-muted);
  font-size: .85rem;
  min-width: 64px;
}
.detail-info dd,
.play-info dd { display: inline; margin: 0; color: var(--text); }

.play-box,
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}
.play-list,
.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  padding: 12px 0;
}
.play-list a,
.episode-list a {
  display: block;
  padding: 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .82rem;
  transition: all .15s;
}
.play-list a:hover,
.episode-list a:hover,
.play-list a.active,
.episode-list a.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}

.summary,
.content-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  color: var(--text);
  line-height: 1.8;
}

/* ── Forms (login/register) ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .88rem;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }

/* ── Page title (非首页) ── */
.page-title,
.page-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-left: 14px;
  position: relative;
}
.page-title::before,
.page-head h1::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ── Empty state ── */
.empty,
.no-result {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .movie-grid,
  .card-grid,
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .detail-info,
  .play-info { gap: 14px; }
  .detail-info .poster,
  .play-info .poster { width: 130px; }
  .detail-info h1,
  .play-info h1 { font-size: 1.3rem; }
}
