/* ==========================================================================
   Entertainment Media Group — core stylesheet
   Tailwind handles layout/utilities; this file covers custom components,
   gradients, animations, and anything Tailwind utilities can't express.
   ========================================================================== */

* {
  scrollbar-width: thin;
  scrollbar-color: #7c3aed #0a0612;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #0a0612; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9333ea, #d946ef);
  border-radius: 999px;
}

html { scroll-behavior: smooth; }

body {
  background-color: #05010d;
  color: #f3eaff;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

::selection {
  background: #a855f7;
  color: #fff;
}

h1, h2, h3, h4, .font-display {
  font-family: "Anton", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.font-heading { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.08em; }

/* ---------- Loader ---------- */
#site-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #05010d;
  transition: opacity .5s ease, visibility .5s ease;
}
#site-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-bars { display: flex; gap: 6px; align-items: flex-end; height: 40px; }
.loader-bars span {
  width: 6px; border-radius: 4px;
  background: linear-gradient(180deg, #d946ef, #7c3aed);
  animation: eq 0.9s ease-in-out infinite;
}
.loader-bars span:nth-child(1){ height: 14px; animation-delay: 0s; }
.loader-bars span:nth-child(2){ height: 34px; animation-delay: .15s; }
.loader-bars span:nth-child(3){ height: 20px; animation-delay: .3s; }
.loader-bars span:nth-child(4){ height: 40px; animation-delay: .45s; }
.loader-bars span:nth-child(5){ height: 24px; animation-delay: .6s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ---------- Gradient text / backgrounds ---------- */
.text-gradient {
  background: linear-gradient(90deg, #d946ef, #a855f7 45%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-mesh {
  background:
    radial-gradient(circle at 15% 25%, rgba(168,85,247,0.35), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(217,70,239,0.28), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(124,58,237,0.30), transparent 45%),
    linear-gradient(180deg, #05010d 0%, #0d0716 100%);
}

.noise-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glow blobs used as ambient background decoration */
.glow-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Navbar ---------- */
#navbar {
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease, backdrop-filter .35s ease;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(5, 1, 13, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, #d946ef, #a855f7);
  transition: width .3s ease;
  border-radius: 999px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #e879f9; }

#mobile-menu { transition: max-height .4s ease, opacity .3s ease; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn-glow {
  position: relative;
  background: linear-gradient(90deg, #9333ea, #d946ef);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow: 0 0 25px rgba(168,85,247,0.45);
}
.btn-glow:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 45px rgba(217,70,239,0.65); filter: brightness(1.08); }
.btn-glow:active { transform: translateY(0) scale(0.99); }

.btn-outline {
  border: 1.5px solid rgba(168,85,247,0.6);
  transition: all .25s ease;
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  border-color: #e879f9;
  background: rgba(168,85,247,0.12);
  box-shadow: 0 0 25px rgba(168,85,247,0.3);
}

/* ---------- Marquee ticker ---------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(168,85,247,0.18);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(217,70,239,0.5);
  box-shadow: 0 20px 45px rgba(88, 28, 135, 0.45);
}

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .6s ease, filter .6s ease; }
.img-zoom:hover img { transform: scale(1.1); filter: brightness(1.05) saturate(1.1); }

/* Ticket-stub shaped card for show listings */
.ticket-card {
  position: relative;
  background: linear-gradient(135deg, rgba(147,51,234,0.12), rgba(217,70,239,0.06));
  border: 1px dashed rgba(168,85,247,0.4);
}
.ticket-card::before,
.ticket-card::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  background: #05010d;
  border-radius: 999px;
  top: 50%; transform: translateY(-50%);
}
.ticket-card::before { left: -11px; }
.ticket-card::after { right: -11px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity .7s ease, transform .7s ease; }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* ---------- Counters ---------- */
.stat-number { font-family: "Anton", sans-serif; }

/* ---------- Video / lightbox modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,1,8,0.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-overlay .modal-inner { transform: scale(0.94); transition: transform .35s ease; }
.modal-overlay.open .modal-inner { transform: scale(1); }

/* Hero video background (YouTube iframe cropped to cover) */
.video-cover-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.video-cover-wrap iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.77vh; min-width: 100%;
  height: 100vh; min-height: 56.25vw;
  transform: translate(-50%, -50%) scale(1.35);
  pointer-events: none;
}

/* Play button */
.play-btn {
  width: 78px; height: 78px; border-radius: 999px;
  background: rgba(168,85,247,0.25);
  border: 2px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .3s ease;
  backdrop-filter: blur(4px);
}
.play-btn:hover { transform: scale(1.12); background: rgba(217,70,239,0.4); }
.play-btn::after {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

/* Pulse ring for "LIVE" badges */
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 999px; background: #f43f5e; }
.live-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid #f43f5e; animation: pulse-ring 1.6s cubic-bezier(0.2,0.6,0.4,1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Equalizer bars (decorative, used near music/audio widgets) ---------- */
.eq-bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq-bars span { width: 3px; background: linear-gradient(180deg,#e879f9,#9333ea); border-radius: 2px; animation: eqbar 1s ease-in-out infinite; }
.eq-bars span:nth-child(1){ height: 40%; animation-delay: 0s; }
.eq-bars span:nth-child(2){ height: 100%; animation-delay: .2s; }
.eq-bars span:nth-child(3){ height: 65%; animation-delay: .4s; }
.eq-bars span:nth-child(4){ height: 85%; animation-delay: .1s; }
@keyframes eqbar { 0%,100% { transform: scaleY(0.4);} 50% { transform: scaleY(1);} }

/* ---------- Tabs (Listen genre filter) ---------- */
.tab-btn { transition: all .25s ease; }
.tab-btn.active {
  background: linear-gradient(90deg, #9333ea, #d946ef);
  color: #fff;
  box-shadow: 0 0 20px rgba(168,85,247,0.5);
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-item .accordion-content { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.accordion-item.open .accordion-content { max-height: 300px; }
.accordion-item .chevron { transition: transform .3s ease; }
.accordion-item.open .chevron { transform: rotate(180deg); }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 46px; height: 46px; border-radius: 999px;
  background: linear-gradient(135deg, #9333ea, #d946ef);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Toast (contact form feedback) ---------- */
#toast {
  position: fixed; top: 100px; right: 24px; z-index: 300;
  transform: translateX(120%); transition: transform .4s ease;
}
#toast.show { transform: translateX(0); }

/* ---------- Divider ---------- */
.glow-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(217,70,239,0.6), transparent); }

/* ---------- Hero waveform decoration ---------- */
.hero-scroll-indicator {
  animation: float 2.2s ease-in-out infinite;
}

/* ---------- Form inputs ---------- */
.field-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168,85,247,0.25);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field-input:focus {
  outline: none;
  border-color: #d946ef;
  background: rgba(217,70,239,0.06);
  box-shadow: 0 0 0 3px rgba(217,70,239,0.18);
}

/* ---------- Marquee separator dot ---------- */
.dot-sep::before { content: "\2022"; margin: 0 1rem; color: #d946ef; }

/* ---------- Utility: aspect helpers for embeds ---------- */
.aspect-video-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.aspect-video-wrap iframe,
.aspect-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Skip link for accessibility */
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 500;
  background: #d946ef; color: #05010d; padding: 10px 16px; border-radius: 8px;
}
