/* ========================================
   Scene Reel — Filmstrip Timeline Component
   ======================================== */

.scene-reel {
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.scene-reel .reel-label {
  padding: 0 24px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scene-reel .reel-label .reel-time {
  font-weight: 400;
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Play/Pause Button ---- */
.reel-play-pause {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin: 0 4px;
  padding: 0;
  line-height: 1;
}

.reel-play-pause:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---- Sprocket Holes ---- */
.sprocket-row {
  display: flex;
  gap: 10px;
  padding: 0 12px;
  height: 8px;
  align-items: center;
  overflow: hidden;
}

.sprocket-hole {
  width: var(--sprocket-size);
  height: var(--sprocket-size);
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* ---- Film Strip ---- */
.filmstrip {
  position: relative;
  padding: 6px 0;
  overflow: hidden;
}

.filmstrip-scroll {
  display: flex;
  gap: 8px;
  padding: 0 24px;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}

/* ---- Scene Card ---- */
.scene-card {
  width: var(--reel-card-width);
  min-width: var(--reel-card-width);
  height: var(--reel-card-height);
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 400ms var(--ease-out);
  position: relative;
  overflow: hidden;
}

.scene-card .card-number {
  font-family: var(--font-display);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  position: absolute;
  top: 4px;
  right: 8px;
  transition: color 400ms var(--ease-out);
}

.scene-card .card-scene-title {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  position: relative;
  z-index: 1;
  transition: color 400ms var(--ease-out);
}

.scene-card .card-time {
  font-size: 9px;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
  transition: color 400ms var(--ease-out);
}

/* ---- Scene Card States ---- */

/* Past */
.scene-card.past {
  opacity: 0.5;
}

.scene-card.past .card-number {
  color: rgba(255, 255, 255, 0.04);
}

.scene-card.past::before {
  content: '\2713';
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 9px;
  color: var(--reel-accent);
  opacity: 0.6;
}

/* Active */
.scene-card.active {
  transform: scale(1.12);
  border-color: var(--reel-accent);
  background: rgba(185, 50, 216, 0.08);
  animation: reelGlow 3s ease-in-out infinite;
  z-index: 2;
}

.scene-card.active .card-number {
  color: rgba(255, 255, 255, 0.15);
}

.scene-card.active .card-scene-title {
  color: var(--text-primary);
  font-weight: 600;
}

.scene-card.active .card-time {
  color: var(--reel-accent);
}

/* Future */
.scene-card.future {
  opacity: 0.65;
}

/* Hover */
.scene-card:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-card-hover);
}

/* ---- Progress Line ---- */
.reel-progress {
  position: relative;
  height: 4px;
  margin: 8px 24px 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: visible;
}

.reel-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--reel-accent);
  transition: width 800ms var(--ease-out);
  position: relative;
  box-shadow: 0 0 8px var(--reel-accent);
}

/* Glowing dot tracker */
.reel-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--reel-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--reel-accent), 0 0 4px var(--reel-accent);
}

/* ---- Particle Flow Effect ---- */
.reel-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.reel-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--reel-accent);
  opacity: 0;
  animation: particleFlow 2.5s ease-in-out infinite;
}

.reel-particle:nth-child(1) { top: -1px; animation-delay: 0s; }
.reel-particle:nth-child(2) { top: 1px; animation-delay: 0.6s; }
.reel-particle:nth-child(3) { top: 0px; animation-delay: 1.2s; }
.reel-particle:nth-child(4) { top: 2px; animation-delay: 1.8s; }

/* ---- Scene Markers on Progress ---- */
.reel-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reel-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
}
