/* CAPCUT CINEMATIC VIDEO MOTION POSTCARD STYLE */

:root {
  --cc-bg: #090a0f;
  --cc-neon-pink: #ff0050;
  --cc-neon-blue: #00f2fe;
  --cc-glass: rgba(20, 20, 28, 0.85);
  --cc-border: rgba(255, 255, 255, 0.15);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Mali', 'Itim', 'Prompt', sans-serif;
  background: var(--cc-bg);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.cc-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

/* CAPCUT HEADER BADGE */
.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cc-neon-pink), var(--cc-neon-blue));
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 0, 80, 0.4);
}

/* 9:16 CINEMATIC VIDEO FRAME CONTAINER */
.cc-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 75vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
  border: 2px solid var(--cc-border);
  background: #000;
}

/* KEN BURNS MOTION STAGE */
.cc-motion-stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.cc-motion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: kenBurnsZoom 12s infinite alternate ease-in-out;
}

.cc-motion-img.active {
  opacity: 1;
}

@keyframes kenBurnsZoom {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(-15px, -10px); }
  100% { transform: scale(1.08) translate(10px, 15px); }
}

/* VHS RETRO OVERLAY FILTER */
.cc-filter-vhs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,0,80,0.05) 0%, rgba(0,242,254,0.05) 100%);
  mix-blend-mode: overlay;
  z-index: 5;
}

/* SUBTITLE CAPTION OVERLAY BOX */
.cc-caption-box {
  position: absolute;
  bottom: 90px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cc-caption-title {
  font-family: 'Mali', 'Itim', sans-serif;
  font-size: 1.6rem;
  color: var(--cc-neon-blue);
  margin-bottom: 8px;
}

.cc-caption-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #fff;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AUDIO EQUALIZER WAVEFORM */
.cc-equalizer {
  position: absolute;
  top: 25px;
  right: 25px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 25px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 20px;
}

.cc-eq-bar {
  width: 4px;
  height: 100%;
  background: var(--cc-neon-pink);
  border-radius: 2px;
  animation: eqBounce 1.2s infinite ease-in-out alternate;
}

.cc-eq-bar:nth-child(2) { animation-delay: 0.2s; background: var(--cc-neon-blue); }
.cc-eq-bar:nth-child(3) { animation-delay: 0.4s; background: #ffd700; }
.cc-eq-bar:nth-child(4) { animation-delay: 0.1s; background: var(--cc-neon-pink); }

@keyframes eqBounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* PLAYER PLAY/PAUSE OVERLAY BUTTON */
.cc-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #fff;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}

.cc-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--cc-neon-pink);
}

.cc-video-frame.playing .cc-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* RECIPIENT & SENDER FOOTER */
.cc-footer-info {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #aaa;
}

.cc-footer-info strong {
  color: var(--cc-neon-pink);
}
