/* ==========================================================================
 * Instagram Films — 紧凑视频网格 + 弹层播放
 * 配色/字体全部沿用 theme.css 的站点变量：--paper --ink --muted --accent --line
 * ==========================================================================*/
.ig-films {
  padding: 110px 4vw 120px;
  background:
    linear-gradient(145deg, rgba(185,154,94,.06), transparent 45%),
    #0b0b09;
  border-bottom: 1px solid var(--line);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* --- 视频卡片 --- */
.ig-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 0;
  overflow: hidden;
  appearance: none;
  border: 1px solid rgba(185,154,94,.25);
  background: #15110c;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.ig-card:hover img { transform: scale(1.03); }

.ig-card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(10,11,10,.72);
  color: var(--accent);
  font-size: 8px;
  letter-spacing: .18em;
}

/* 无封面时的占位 */
.ig-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11100c;
  color: var(--accent);
  font-size: 24px;
}

/* --- Instagram 关注卡 --- */
.ig-follow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #101008;
  border: 1px dashed rgba(185,154,94,.45);
  text-decoration: none;
  text-align: center;
  transition: border-color .3s ease;
}
.ig-follow strong {
  color: #e9e1d1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .02em;
}
.ig-follow em {
  color: var(--accent);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .18em;
}
.ig-follow:hover { border-color: var(--accent); }
.ig-follow img { width: 26px; height: 26px; opacity: .85; transition: transform .3s ease; }
.ig-follow:hover img { transform: scale(1.1); }

/* --- Films 独立页 --- */
.films-page {
  min-height: 72vh;
  padding: 190px 4vw 130px;
  background:
    linear-gradient(145deg, rgba(185,154,94,.06), transparent 45%),
    #0b0b09;
  border-bottom: 1px solid var(--line);
}
.films-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--ink);
}
@media (max-width: 760px) {
  .films-page { padding: 130px 5vw 90px; }
}

/* --- 弹层播放 --- */
#filmbox .filmbox-caption,
.filmbox-caption {
  margin: 14px 0 0;
  color: rgba(238, 233, 221, .72);
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .01em;
  word-break: break-word;
}
#filmbox-media video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #050505;
}
.filmbox-frame {
  width: 100%;
  max-width: 440px;
  height: min(72vh, 640px);
  background: #11100c;
  border: 1px solid rgba(185,154,94,.35);
}

@media (max-width: 760px) {
  .ig-films { padding: 80px 5vw 90px; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
