/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #fff;
  user-select: none;
}

/* ─── Landing Overlay ─── */
#landing {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  transition: opacity 0.8s ease;
}

#landing.fade-out {
  opacity: 0;
  pointer-events: none;
}

.landing-content {
  text-align: center;
  animation: fadeUp 1s ease both;
}

.landing-heart {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.4));
}

.landing-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #E50914, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.landing-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.landing-hint {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
}

/* ─── Carousel ─── */
#carousel {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #121212;
}

#slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
}

.slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ─── Caption ─── */
#caption {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
  pointer-events: none;
}

#caption.visible {
  opacity: 1;
}

/* ─── Navigation Arrows ─── */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  background: rgba(229, 9, 20, 0.7);
  border-color: #E50914;
  color: #fff;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

#prev { left: 1.5rem; }
#next { right: 1.5rem; }

/* ─── Indicators ─── */
#indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
  transition: opacity 0.6s ease;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #E50914;
  border-color: #E50914;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(138, 43, 226, 0.6);
  border-color: #8A2BE2;
}

/* ─── Audio Controls ─── */
#audio-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.8rem;
  border-radius: 30px;
  transition: opacity 0.4s ease;
}

#play-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#play-toggle:hover {
  color: #E50914;
  background: rgba(229, 9, 20, 0.1);
}

#volume-slider {
  width: 60px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E50914;
  border: none;
  transition: box-shadow 0.3s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E50914;
  border: none;
}

/* ─── Keyframes ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .landing-title { font-size: 2.4rem; }
  .landing-heart { font-size: 3rem; }
  .landing-subtitle { font-size: 0.95rem; }
  .nav-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
  #prev { left: 0.8rem; }
  #next { right: 0.8rem; }
  #caption {
    font-size: 0.95rem;
    bottom: 5rem;
    max-width: 90%;
  }
  #audio-controls { bottom: 1rem; right: 1rem; }
  #volume-slider { width: 40px; }
}

@media (max-width: 480px) {
  .landing-title { font-size: 1.8rem; }
  .landing-heart { font-size: 2.4rem; }
  .landing-subtitle { font-size: 0.85rem; }
  .landing-hint { font-size: 0.75rem; }
  .nav-arrow { display: none; }
  #caption { font-size: 0.85rem; bottom: 4rem; }
  .dot { width: 8px; height: 8px; }
}
