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

body {
  background: #07080f;
  color: #e8dcc8;
  font-family: 'Source Sans 3', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.cinzel-deco {
  font-family: 'Cinzel Decorative', serif;
}

.cinzel {
  font-family: 'Cinzel', serif;
}

.golden-text {
  background: linear-gradient(180deg, #ffd700 0%, #f5a623 40%, #d4930a 70%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

.golden-glow {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.15);
}

.marquee-input {
  background: linear-gradient(135deg, #0d0f1a 0%, #141729 100%);
  border: 2px solid #d4930a;
  box-shadow: 0 0 20px rgba(212, 147, 10, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.marquee-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.5);
  outline: none;
}

.btn-generate {
  background: linear-gradient(135deg, #ffd700, #d4930a, #b8860b);
  color: #07080f;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  letter-spacing: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-generate::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}

.btn-generate:hover::before {
  transform: rotate(45deg) translateX(100%);
}

.btn-generate:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 5px 20px rgba(0, 0, 0, 0.4);
}

.btn-generate:active {
  transform: scale(0.98);
}

.poster-card {
  background: linear-gradient(145deg, #111428 0%, #0a0c1a 100%);
  border: 1px solid rgba(212, 147, 10, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 147, 10, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.poster-card:hover {
  transform: perspective(1000px) rotateY(-1deg) rotateX(1deg) scale(1.01);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(212, 147, 10, 0.12);
}

.select-styled {
  background: linear-gradient(135deg, #0d0f1a 0%, #141729 100%);
  border: 1px solid rgba(212, 147, 10, 0.4);
  color: #e8dcc8;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4930a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.fatigue-bar {
  background: linear-gradient(90deg, #1a472a, #8b4513, #8b0000);
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-card {
  background: linear-gradient(135deg, #0d0f1a, #141729);
  border: 1px solid rgba(212, 147, 10, 0.2);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  border-color: rgba(212, 147, 10, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.film-strip-top, .film-strip-bottom {
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    #1a1a1a 0px,
    #1a1a1a 30px,
    #0a0a0a 30px,
    #0a0a0a 32px,
    #1a1a1a 32px,
    #1a1a1a 40px,
    transparent 40px,
    transparent 44px
  );
  position: relative;
}

.film-strip-top::after, .film-strip-bottom::after {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px;
  left: 0; right: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(212, 147, 10, 0.1) 0px,
    rgba(212, 147, 10, 0.1) 6px,
    transparent 6px,
    transparent 44px
  );
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-gold {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.shimmer-loading {
  background: linear-gradient(90deg, #141729 25%, #1c2040 50%, #141729 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.confetti-piece {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

@keyframes confetti-fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.poster-image-container {
  position: relative;
  overflow: hidden;
  background: #0a0c1a;
}

.poster-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #07080f;
}

::-webkit-scrollbar-thumb {
  background: #d4930a44;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4930a88;
}