/* ============================================================
 * 经典小片视图（classic.css）
 * 点侧栏「经典小片」原地接管主舞台（body.is-classic），侧栏保留：
 * 与影视排行同机制 —— 视图容器在首页，classic.js 拉取 5244.php?act=list
 * 渲染 vod-card 卡片（复用 vod.css），点击卡片直接弹窗播放。
 * ========================================================== */

/* ---------- 视图切换（body.is-classic 由 classic.js 控制） ---------- */
body.is-classic #welcome,
body.is-classic #messages,
body.is-classic #typing,
body.is-classic #btnScrollBottom,
body.is-classic #composerDock,
body.is-classic .panel__top { display: none !important; } /* 顶栏仅在任务模式存在 */

/* 与 body.is-vod .stage 完全一致：视图内部自带滚动区 */
body.is-classic .stage {
  overflow: hidden;
  padding: 0;
  scroll-behavior: auto;
}

#classicView { display: none; }

/* 与 body.is-vod #vodView 完全一致 */
body.is-classic #classicView {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
  position: relative;
  animation: vod-in .32s cubic-bezier(.2, .8, .2, 1) both;
}

/* ---------- 卡片悬停微交互（与站点列表卡语气一致：轻抬 + 阴影加深） ---------- */
.classic #classicGrid .vod-card {
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s cubic-bezier(.2, .8, .2, 1);
}
.classic #classicGrid .vod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -10px rgba(20, 20, 30, .3), 0 3px 10px rgba(20, 20, 30, .1);
}
.classic #classicGrid .vod-card .vod-card__ph span { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.classic #classicGrid .vod-card:hover .vod-card__ph span { transform: scale(1.08); }

/* ---------- 选集弹窗（多集条目：白色面板 + 背景压暗，与站点弹窗语言一致） ---------- */
.classic-modal {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(12, 12, 18, .45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.classic-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(72vh, 640px);
  display: flex; flex-direction: column;
  padding: 18px;
  background: var(--surface, #fff);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(12, 12, 20, .3);
  overflow: hidden;
  animation: classic-pop .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes classic-pop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.classic-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--text-soft);
  transition: background .15s, color .15s;
}
.classic-modal__close:hover { background: var(--chip-hover, var(--chip-bg)); color: var(--text); }
.classic-modal__head { display: flex; gap: 12px; margin-bottom: 14px; padding-right: 34px; }
.classic-modal__pic {
  width: 64px; height: 88px;
  border-radius: 8px; overflow: hidden;
  background: var(--chip-bg);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.classic-modal__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.classic-modal__pic span { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: rgba(122, 90, 245, .55); }
.classic-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; line-height: 1.45;
  overflow-wrap: anywhere;
}
.classic-modal__cat { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--text-mute); }
.classic-modal__list {
  overflow-y: auto;
  display: flex; flex-wrap: wrap;   /* 不等宽对齐：按钮按文字自适应宽度 */
  gap: 8px;
  padding: 2px;
}
.classic-modal__ep {
  flex: 0 0 auto;                   /* 优先完整显示按钮文字，不参与压缩 */
  max-width: 100%;                  /* 单个按钮超出容器宽时才截断 */
  height: 36px; padding: 0 12px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 12.5px; font-weight: 600; color: var(--text-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, color .15s, transform .15s;
}
.classic-modal__ep:hover { background: var(--brand-soft, rgba(122, 90, 245, .12)); color: var(--brand-deep, var(--brand)); }
.classic-modal__ep:active { transform: scale(.96); }
