/* ============================================================
   HOME.CSS
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* ── Hero Spotlight ── */
.spotlight-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.65;
  transition: opacity 1s ease-in-out;
  filter: brightness(0.55) contrast(1.15);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6,6,8,0.3) 0%, rgba(6,6,8,0.92) 85%);
  pointer-events: none;
}

.spotlight-tabs {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.spotlight-tab {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text, #eee);
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.spotlight-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.spotlight-tab.active {
  background: rgba(255, 71, 101, 0.15);
  border-color: var(--pink, #ff4765);
  color: #fff;
}
.spotlight-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--pink, #ff4765);
  width: 0%;
  transition: width 0.2s linear;
  border-radius: 2px;
}

.spotlight-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: white;
}
.spotlight-badge.badge-movie { background: var(--pink, #ff4765); }
.spotlight-badge.badge-series { background: var(--purple, #bf5eff); }
.spotlight-badge.badge-anime { background: #f59e0b; color: #111; }

.hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(191, 94, 255, 0.12) 0%, rgba(255, 71, 101, 0.07) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1.8rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 71, 101, 0.08);
  border: 1px solid rgba(255, 71, 101, 0.2);
  border-radius: var(--radius-full);
}
.hero-eyebrow::before {
  content: '✦';
  animation: eyebrowPulse 2s ease infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-actions .btn-primary svg,
.hero-actions .btn-outline svg {
  width: 18px;
  height: 18px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Dynamic movie sections wrapper ── */
.sections-wrap {
  padding: 1.5rem 0 5rem;
}

.sections-wrap .section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.sections-wrap .section:last-child {
  border-bottom: none;
}

/* ── Skeleton Shimmer styles ── */
.skeleton {
  flex-shrink: 0;
  width: 170px;
}
.skel-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}
.skel-line {
  height: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.45rem;
}
.skel-line.short {
  width: 60%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.25rem 3rem;
    min-height: auto;
  }
  .hero-title {
    letter-spacing: -1px;
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-stats {
    gap: 1.5rem;
    margin-top: 3rem;
  }
  .stat-num {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    max-width: 100%;
  }
  .vibe-fab {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .vibe-fab svg {
    width: 22px;
    height: 22px;
  }
  .wheel-wrapper {
    width: 260px;
    height: 260px;
  }
  .vibe-win-title {
    font-size: 1.2rem;
  }
  .vibe-modal-poster {
    width: 90px;
  }
}

/* ── Floating Action Button (FAB) for Vibe Wheel ── */
.vibe-fab {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4765 0%, #bf5eff 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255, 71, 101, 0.5);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.vibe-fab:hover {
  transform: scale(1.12) rotate(15deg);
  box-shadow: 0 15px 35px rgba(255, 71, 101, 0.75);
}
.vibe-fab svg {
  width: 26px;
  height: 26px;
  animation: fabSpin 12s linear infinite;
}
@keyframes fabSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.vibe-fab-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(6px);
}
.vibe-fab:hover .vibe-fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Spin the Vibe Wheel Modal ── */
.vibe-wheel-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.88);
  backdrop-filter: blur(16px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.vibe-wheel-modal.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}
.vibe-wheel-content {
  background: #111118;
  border: 1px solid rgba(255, 71, 101, 0.4);
  border-radius: 28px;
  max-width: 540px;
  width: 100%;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.9), 0 0 40px rgba(255,71,101,0.25);
  text-align: center;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pink, #ff4765);
  background: rgba(255, 71, 101, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 71, 101, 0.2);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.vibe-title {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
}
.vibe-sub {
  color: #aaa;
  font-size: 0.9rem;
  max-width: 440px;
  margin: 0 auto 2.25rem;
  line-height: 1.5;
}

.wheel-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: var(--pink, #ff4765);
  z-index: 25;
  filter: drop-shadow(0 4px 12px rgba(255, 71, 101, 0.9));
  animation: pointerPulse 1.5s ease-in-out infinite alternate;
}

.wheel-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 45px rgba(255, 71, 101, 0.35), inset 0 0 25px rgba(0,0,0,0.6);
  background: conic-gradient(
    #ff4765 0deg 45deg,
    #bf5eff 45deg 90deg,
    #f59e0b 90deg 135deg,
    #10b981 135deg 180deg,
    #06b6d4 180deg 225deg,
    #3b82f6 225deg 270deg,
    #ec4899 270deg 315deg,
    #a855f7 315deg 360deg
  );
  transition: transform 4s cubic-bezier(0.15, 0.85, 0.2, 1);
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 30px;
  margin-top: -15px;
  transform-origin: 0% 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 18px;
  font-weight: 800;
  font-size: 0.8rem;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95);
  pointer-events: none;
}
.wheel-label.pos-1 { transform: rotate(22.5deg); }
.wheel-label.pos-2 { transform: rotate(67.5deg); }
.wheel-label.pos-3 { transform: rotate(112.5deg); }
.wheel-label.pos-4 { transform: rotate(157.5deg); }
.wheel-label.pos-5 { transform: rotate(202.5deg); }
.wheel-label.pos-6 { transform: rotate(247.5deg); }
.wheel-label.pos-7 { transform: rotate(292.5deg); }
.wheel-label.pos-8 { transform: rotate(337.5deg); }

.spin-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #0f172a;
  font-weight: 900;
  font-size: 1.05rem;
  border: 4px solid var(--pink, #ff4765);
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 0 25px rgba(255, 71, 101, 0.5), inset 0 2px 4px rgba(255,255,255,0.8);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spin-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 35px rgba(255, 71, 101, 0.8), inset 0 2px 4px rgba(255,255,255,0.9);
}

.vibe-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.vibe-modal-close:hover {
  background: rgba(255, 71, 101, 0.3);
}

.vibe-win-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--pink, #ff4765);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.vibe-modal-body {
  display: flex;
  gap: 1.5rem;
  text-align: left;
}
.vibe-modal-poster {
  width: 130px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
  background: #222;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.vibe-modal-info {
  flex: 1;
}
.vibe-win-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.vibe-win-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 0.75rem;
}
.vibe-win-overview {
  font-size: 0.84rem;
  color: #aaa;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.vibe-win-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}


