/* ============================================================================
   无限摄影社 · 闪电分镜工作台样式
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════════
   镜头卡片（分镜表的一行）
   ═══════════════════════════════════════════════════════════════════ */
.shot-card {
  position: relative;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--glass-2);
  backdrop-filter: blur(var(--blur-md)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(150%);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), var(--shadow-inset-top);
  transition: border-color var(--dur-base), background var(--dur-base), transform var(--dur-base);
}
.shot-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--metal-line);
  opacity: .3;
  pointer-events: none;
}
.shot-card:hover {
  border-color: var(--stroke-2);
  background: var(--glass-3);
  transform: translateY(-2px);
}

/* 左侧分镜图 */
.shot-card__sketch {
  position: relative;
  min-height: 150px;
  background: linear-gradient(150deg, var(--ink-800), var(--ink-950));
  border-right: 1px solid var(--stroke-1);
  overflow: hidden;
}
.shot-card__sketch img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.shot-card__sketch.is-clickable { cursor: zoom-in; }
.shot-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 150px;
  color: rgba(255,255,255,.10);
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 28px 28px;
}
.shot-card__placeholder svg { width: 38px; height: 38px; stroke-width: 1.3; }

/* 右侧内容 */
.shot-card__body {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
}
.shot-card__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--red-500), var(--red-700));
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: var(--shadow-red);
}
.shot-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap;
  margin: 0;
}
.shot-card__dialogue,
.shot-card__notes {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-2);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.028);
  border: 1px solid var(--stroke-1);
  white-space: pre-wrap;
}
.shot-card__notes { background: rgba(214,158,26,.06); border-color: rgba(214,158,26,.20); }
.shot-card__label {
  flex: 0 0 34px;
  font-size: var(--fs-2xs);
  font-weight: 800;
  color: var(--text-4);
  padding-top: 3px;
  letter-spacing: .04em;
}
.shot-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}
.shot-card__fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  max-width: 100%;
}
.shot-card__fact svg { color: var(--text-4); }
.shot-card__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* ── 手机端：图上文下 ── */
@media (max-width: 720px) {
  .shot-card { grid-template-columns: minmax(0, 1fr); }
  .shot-card__sketch {
    min-height: 148px;
    aspect-ratio: 16 / 9;
    border-right: none;
    border-bottom: 1px solid var(--stroke-1);
  }
  .shot-card__body { padding: var(--sp-4); gap: var(--sp-2); }
  .shot-card__actions .btn { flex: 1; }
  .shot-card__dialogue,
  .shot-card__notes { flex-direction: column; gap: 4px; }
  .shot-card__label { flex: none; padding-top: 0; }
}

/* ── 打印：分镜表存 PDF ── */
@media print {
  .shot-card__actions, .back-link, .topbar, .sidebar, .tabbar { display: none !important; }
  .shot-card {
    break-inside: avoid;
    border-color: #ccc;
    background: #fff;
    box-shadow: none;
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .shot-card__desc, .shot-card__dialogue, .shot-card__notes, .shot-card__fact { color: #000; }
  .shot-card__sketch { border-color: #ccc; }
}
