*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Section wrapper ── */
.ig-section {
  text-align: left;
  padding: 2rem 0 0;
}

.ig-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-primary, #111);
  margin-bottom: 0.25rem;
}

.ig-section p {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #888);
  margin-bottom: 1rem;
}

/* ── Scene ── */
.ig-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 0;
  position: relative;
  min-height: 560px;
}

.ig-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-background-primary, #fff);
  border: 0.5px solid var(--color-border-secondary, #ddd);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.15s, transform 0.15s;
}

.ig-arrow:hover {
  background: var(--color-background-secondary, #f5f5f5);
  transform: translateY(-50%) scale(1.08);
}

.ig-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-primary, #111);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ig-arrow--prev {
  left: 0;
}

.ig-arrow--next {
  right: 0;
}

.ig-scene {
  overflow: hidden;
}

/* ── Frame ── */
.ig-frame {
  width: 340px;
  flex-shrink: 0;
  border: 0.5px solid var(--color-border-tertiary, #efefef);
  border-radius: 12px;
  background: var(--color-background-primary, #fff);
  overflow: hidden;
  user-select: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── Header ── */
.ig-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.ig-header-text {
  flex: 1;
}

.ig-username {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary, #111);
}

.ig-location {
  font-size: 11px;
  color: var(--color-text-secondary, #888);
}

.ig-more {
  display: flex;
  gap: 3px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.ig-more span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-secondary, #888);
  display: block;
}

/* ── Media ── */
.ig-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--color-background-secondary, #fafafa);
  overflow: hidden;
}

.ig-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
  cursor: pointer;
}

.ig-media img.fade {
  opacity: 0;
}

.ig-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ig-play-btn svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* ── Dots ── */
.ig-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 8px 0 4px;
}

.ig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border-secondary, #ddd);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.ig-dot.active {
  background: #0095f6;
  transform: scale(1.25);
}

/* ── Caption ── */
.ig-caption-area {
  padding: 8px 12px 12px;
}

.ig-caption-username {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-primary, #111);
}

.ig-caption-text {
  font-size: 13px;
  color: var(--color-text-primary, #111);
  line-height: 1.5;
  display: inline;
}

.ig-caption-more {
  font-size: 13px;
  color: var(--color-text-secondary, #888);
  cursor: pointer;
  margin-left: 4px;
}

.ig-view-link {
  display: block;
  padding: 0 12px 12px;
  font-size: 12px;
  color: #0095f6;
  text-decoration: none;
}

.ig-view-link:hover {
  text-decoration: underline;
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .ig-scene {
    padding: 0.75rem 0;
  }

  .ig-arrow {
    display: none;
  }

  .ig-frame {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}