/* ==========================================
   七七影视 (Qiqi Media) - Premium Cyber-Amethyst Style CSS
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --neon-cyan: #00f2fe;
  --neon-amber: #ffb300;
  --neon-purple: #bf55ec;
  --neon-red: #ff3366;
  --cinematic-bg: #06070b;
  --cinematic-card: #0e111a;
  --cinematic-card-hover: #161a29;
  --cinematic-border: #1a1e2f;
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cinematic-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--cinematic-border);
  border-radius: 6px;
  border: 2px solid var(--cinematic-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Base resets & layout */
html {
  scroll-behavior: smooth;
  background-color: var(--cinematic-bg);
  color: var(--text-primary);
  font-family: "Noto Sans SC", "Space Grotesk", "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Dynamic Tab switching */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Animations & Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 242, 254, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.4); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 179, 0, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 179, 0, 0.6); }
}

@keyframes floatChat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes equalizerBounce {
  0% { height: 4px; }
  100% { height: 24px; }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Class utilities */
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.glow-cyan {
  animation: pulseGlow 3s infinite ease-in-out;
}

.glow-amber {
  animation: pulseGold 2.5s infinite ease-in-out;
}

.float-effect {
  animation: floatChat 4s infinite ease-in-out;
}

/* Equalizer Visualizer */
.eq-bar {
  width: 3px;
  height: 4px;
  background-color: var(--neon-cyan);
  border-radius: 2px;
  animation: equalizerBounce 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(2) { animation-delay: 0.15s; background-color: var(--neon-purple); }
.eq-bar:nth-child(3) { animation-delay: 0.35s; background-color: var(--neon-amber); }
.eq-bar:nth-child(4) { animation-delay: 0.5s; background-color: var(--neon-red); }
.eq-bar:nth-child(5) { animation-delay: 0.25s; background-color: var(--neon-cyan); }

/* Cinematic Retro Screen Scanline overlay */
.screen-crt::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
}

/* Hover scales and filters */
.card-zoom {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-zoom:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
}

/* Selection customization */
::selection {
  background-color: var(--neon-cyan);
  color: #000000;
}

/* Map Grid Transition */
#map-grid-mesh {
  transition: background-size 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
