﻿:root {
  color-scheme: light;
}

body {
  font-family: 'Lora', serif;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.star {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 0 16px rgba(255, 240, 180, 0.55));
  opacity: 0;
  animation: star-twinkle 5s linear infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.25); }
}

.hero-scene {
  position: relative;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 250, 230, 0.95) 0%, transparent 32%), radial-gradient(circle at 80% 18%, rgba(255, 243, 190, 0.8) 0%, transparent 36%), radial-gradient(circle at 50% 75%, rgba(255, 235, 180, 0.18) 0%, transparent 60%);
  overflow: hidden;
}

.hero-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(31, 54, 23, 0.12) 0%, transparent 50%);
}

.moon {
  position: absolute;
  top: 10%;
  right: 14%;
  width: 70px;
  height: 70px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #fff8dd, #f0c06a 60%, #d8a045 100%);
  box-shadow: 0 0 50px rgba(248, 216, 112, 0.55);
}

.firefly {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #fdf2a0;
  box-shadow: 0 0 16px rgba(255, 235, 144, 0.7);
  animation: firefly var(--d, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform: translate(-50%, -50%);
}

.firefly {
  left: var(--x);
  top: var(--y);
}

@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  25% { opacity: 0.8; transform: translate(calc(-50% + 8px), calc(-50% - 4px)) scale(1); }
  50% { opacity: 1; transform: translate(calc(-50% - 6px), calc(-50% + 6px)) scale(1.15); }
  75% { opacity: 0.6; transform: translate(calc(-50% + 4px), calc(-50% + 2px)) scale(1); }
}

.hero-ground {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, #37512a 0%, #1c2d18 100%);
  border-top-left-radius: 60% 28%;
  border-top-right-radius: 60% 28%;
  box-shadow: inset 0 12px 24px rgba(14, 33, 11, 0.4);
}

.hero-tree {
  position: absolute;
  left: 16%;
  bottom: 18%;
  width: 16%;
  aspect-ratio: 0.6;
  background: linear-gradient(180deg, #7b5a29, #3c2311);
  border-radius: 9999px 9999px 24px 24px;
}

.hero-tree::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 220%;
  aspect-ratio: 1 / 0.55;
  background: radial-gradient(circle at 50% 30%, #41603a 35%, #1a2c12 100%);
  transform: translateX(-50%);
  border-radius: 50%;
}

.hero-fire {
  position: absolute;
  width: var(--size, 9px);
  height: var(--size, 9px);
  border-radius: 9999px;
  background: radial-gradient(circle, #ffe9a0 0%, #ff8e26 55%, transparent 100%);
  box-shadow: 0 0 16px rgba(255, 162, 60, 0.8);
  animation: flame 3.5s ease-in-out infinite alternate;
}

@keyframes flame {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.15); }
}

.lantern-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.lantern-string {
  width: 2px;
  height: 68px;
  background: #c47f17;
}

.lantern-top {
  width: 78px;
  height: 18px;
  background: #c47f17;
  border-radius: 10px 10px 0 0;
  border: 3px solid #d4a843;
}

.lantern-body {
  width: 98px;
  height: 126px;
  background: linear-gradient(180deg, #c47f17 0%, #d4a843 40%, #b54a2a 100%);
  border-radius: 50% 50% 40% 40% / 30% 30% 50% 50%;
  position: relative;
  box-shadow: 0 0 40px rgba(196, 127, 23, 0.7), 0 0 80px rgba(196, 127, 23, 0.3);
}

.lantern-body::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: rgba(255, 240, 180, 0.5);
  border-radius: inherit;
}

.lantern-bottom {
  width: 58px;
  height: 14px;
  background: #c47f17;
  border-radius: 0 0 10px 10px;
  border: 3px solid #d4a843;
}

.lantern-tassel {
  width: 3px;
  height: 28px;
  background: #b54a2a;
  position: relative;
}

.lantern-tassel::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: 11px;
  height: 11px;
  background: #b54a2a;
  border-radius: 9999px;
  transform: translateX(-50%);
}

.video-card {
  cursor: pointer;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(225, 198, 155, 0.7);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 60px rgba(84, 58, 22, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 80px rgba(84, 58, 22, 0.16);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: none;
}

.group:hover .video-play,
.video-card:focus-visible .video-play {
  opacity: 1;
  transform: scale(1);
}

.video-play svg {
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.25));
}

.video-info {
  padding: 1.1rem 1.15rem 1.35rem;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f2a24;
  margin-bottom: 0.45rem;
}

.video-desc {
  color: #5f4a35;
  line-height: 1.75;
  font-size: 0.95rem;
}

.video-player-page {
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
}

.video-player-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000;
  padding-bottom: 56.25%;
}

.video-player-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-queue {
  border-radius: 28px;
  border: 1px solid rgba(212, 184, 122, 0.5);
  background: rgba(255, 255, 255, 0.92);
  padding: 1.5rem;
  box-shadow: 0 18px 60px rgba(84, 58, 22, 0.06);
}

.player-queue-title {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: #b56d19;
  margin-bottom: 1rem;
}

/* Marquee styles for cultures */
.marquee-track {
  display: flex;
  gap: 1rem;
  align-items: center;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pause animation when user hovers */
.marquee-paused {
  animation-play-state: paused !important;
}

/* Mobile navigation dropdown when `mobile-open` is toggled */
#navList.mobile-open {
  display: flex !important;
  position: fixed !important;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  flex-direction: column;
  gap: 0.75rem;
  padding: calc(env(safe-area-inset-top, 0px) + 3.5rem) 1rem 1.25rem;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

#navList.mobile-open a {
  padding: 0.8rem 0.75rem;
  border-radius: 0.5rem;
  display: block;
  font-size: 1rem;
}

/* Ensure desktop layout keeps nav visible */
@media (min-width: 768px) {
  #navList.mobile-open { position: static; display: flex !important; box-shadow: none; background: transparent; height: auto; padding: 0; }
}

/* Prevent body scrolling when mobile menu is open */
body.menu-open { overflow: hidden; }

/* Mobile close button inside overlay */
#mobileCloseBtn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  z-index: 10000;
}

@media (min-width: 768px) {
  #mobileCloseBtn { display: none; }
}

.queue-card {
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(212, 184, 122, 0.5);
  background: rgba(255, 255, 255, 0.96);
  padding: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.queue-card:hover,
.queue-card:focus-visible {
  transform: translateX(6px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(84, 58, 22, 0.12);
}

.queue-item-title {
  font-weight: 600;
  color: #2b2b26;
  margin-bottom: 0.35rem;
}

.queue-item-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5f4a35;
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .firefly,
  .hero-fire,
  .video-card,
  .video-play,
  .queue-card {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  .video-player-grid {
    display: block;
  }
}

@keyframes reveal-anim {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
