﻿/* ==========================================================================
   KuroStream — Lively Ambient Background System
   Unified cinematic, atmospheric background for ALL KuroStream pages:
   - Home Page (/)
   - Watch Page (/watch/:id)
   - Browse Page (/browse)
   - Seasonal Anime (/seasonal)
   - Genres Page (/genres)
   - Top Anime (/top)
   - Merch Shop (/shop.html)
   ========================================================================== */

:root {
  --ambient-bg-color: #050507;
}

/* ──── Ambient Background Root Container (Fixed Fullscreen Viewport) ─── */
#ambient-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-color: var(--ambient-bg-color);
  contain: strict;
}

/* Ensure foreground content stacks cleanly above the ambient canvas */
#root,
.shop-body-content,
.main-content,
.watch-page,
.shop-nav,
.shop-hero,
.controls-wrapper,
.merch-catalog-container,
.shop-footer,
.navbar-wrapper,
.container,
main {
  position: relative;
  z-index: 1;
}

/* ──── Aurora Mesh Glow Orbs (Fluid Ambient Lighting) ─────────────────── */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  pointer-events: none;
  will-change: transform;
  opacity: 0.78;
}

.ambient-orb-1 {
  width: min(750px, 80vw);
  height: min(750px, 80vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 30, 86, 0.20) 0%, rgba(255, 30, 86, 0.08) 50%, transparent 72%);
  animation: orbFloat1 24s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: min(700px, 75vw);
  height: min(700px, 75vw);
  bottom: -15%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 172, 65, 0.16) 0%, rgba(56, 189, 248, 0.06) 50%, transparent 72%);
  animation: orbFloat2 28s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  width: min(580px, 65vw);
  height: min(580px, 65vw);
  top: 38%;
  left: 42%;
  background: radial-gradient(circle, rgba(255, 172, 65, 0.14) 0%, rgba(255, 30, 86, 0.05) 55%, transparent 70%);
  animation: orbFloat3 32s ease-in-out infinite alternate;
}

.ambient-orb-4 {
  width: min(500px, 55vw);
  height: min(500px, 55vw);
  bottom: 12%;
  left: 6%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(234, 88, 12, 0.03) 50%, transparent 68%);
  animation: orbFloat4 26s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(14vw, 10vh, 0) scale(1.15); }
  100% { transform: translate3d(5vw, 20vh, 0) scale(0.92); }
}

@keyframes orbFloat2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-16vw, -12vh, 0) scale(1.18); }
  100% { transform: translate3d(-6vw, -22vh, 0) scale(0.9); }
}

@keyframes orbFloat3 {
  0%   { transform: translate3d(0, 0, 0) scale(0.9); }
  50%  { transform: translate3d(-10vw, 12vh, 0) scale(1.2); }
  100% { transform: translate3d(12vw, -10vh, 0) scale(1.05); }
}

@keyframes orbFloat4 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(18vw, -14vh, 0) scale(1.12); }
  100% { transform: translate3d(8vw, 6vh, 0) scale(0.94); }
}

/* ──── Atmospheric Micro-Texture & Vignette ───────────────────────────── */
.ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 25%, transparent 35%, rgba(5, 5, 7, 0.72) 100%);
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.55;
  pointer-events: none;
}

/* ──── Canvas Particle System ────────────────────────────────────────── */
#ambient-dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ──── Watch Page Cinema Ambient Lighting ─────────────────────────────── */
.video-player-wrap {
  box-shadow: 0 0 55px rgba(255, 30, 86, 0.28), 0 20px 45px rgba(0, 0, 0, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
  transition: box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.video-player-wrap:hover {
  box-shadow: 0 0 85px rgba(255, 30, 86, 0.38), 0 25px 55px rgba(0, 0, 0, 0.95) !important;
  border-color: rgba(255, 30, 86, 0.35) !important;
}

.video-player-wrap::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: calc(var(--radius-xl, 24px) + 12px);
  background: radial-gradient(ellipse at center, rgba(255, 30, 86, 0.28) 0%, rgba(255, 172, 65, 0.12) 45%, transparent 70%);
  filter: blur(28px);
  -webkit-filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  animation: cinemaPulse 6s ease-in-out infinite alternate;
}

@keyframes cinemaPulse {
  0%   { opacity: 0.55; transform: scale(0.98); }
  100% { opacity: 0.95; transform: scale(1.02); }
}

.player-main,
.player-loading {
  border-radius: var(--radius-xl, 24px) !important;
  overflow: hidden !important;
}

/* ──── Subpage Glassmorphism Panels ─────────────────────────────────── */
.episode-section,
.synopsis-block,
.detail-card,
.watch-on-section,
.related-section,
.filters-sidebar {
  background: rgba(17, 9, 14, 0.78) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

.top-item,
.ranked-item,
.genre-card,
.genre-page-card {
  background: rgba(17, 9, 14, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.top-item:hover,
.ranked-item:hover,
.genre-card:hover,
.genre-page-card:hover {
  background: rgba(28, 32, 51, 0.88) !important;
  border-color: rgba(255, 30, 86, 0.35) !important;
  box-shadow: 0 8px 30px rgba(255, 30, 86, 0.15) !important;
}

.animecard-content {
  background: rgba(17, 9, 14, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.animecard-content:hover {
  border-color: rgba(255, 30, 86, 0.4) !important;
  box-shadow: 0 12px 35px rgba(255, 30, 86, 0.2) !important;
}

/* ──── Subpage Animated Header Glow (/browse, /seasonal, /genres, /top) ─ */
.page-header-bg {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 30, 86, 0.24) 0%, rgba(255, 172, 65, 0.1) 45%, transparent 70%) !important;
  animation: pageHeaderPulse 8s ease-in-out infinite alternate !important;
}

@keyframes pageHeaderPulse {
  0%   { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04); }
}

/* ──── Merch Shop Polish (/shop.html) ─────────────────────────────────── */
.merch-card {
  background: rgba(22, 11, 17, 0.78) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.merch-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255, 30, 86, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 30, 86, 0.2) !important;
}

.trust-strip {
  background: rgba(17, 9, 14, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.shop-nav {
  background: rgba(5, 5, 7, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ──── Reduced Motion Handling ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .video-player-wrap::before,
  .page-header-bg {
    animation: none !important;
  }
}

/* ──── Lights Out Cinema Mode ────────────────────────────────────────── */
body.lights-out-active {
  background-color: #000 !important;
}

body.lights-out-active #ambient-bg {
  opacity: 0.3 !important;
  transition: opacity 0.8s ease !important;
}

body.lights-out-active .navbar,
body.lights-out-active .watch-sidebar,
body.lights-out-active .episode-section,
body.lights-out-active .synopsis-block,
body.lights-out-active .chars-section,
body.lights-out-active .anime-info-bar,
body.lights-out-active .footer,
body.lights-out-active .ambient-grid {
  opacity: 0.03 !important;
  pointer-events: none !important;
  transition: opacity 0.8s ease !important;
}

body.lights-out-active .provider-bar,
body.lights-out-active #custom-tools-bar {
  opacity: 0.3 !important;
  transition: opacity 0.4s ease !important;
}
body.lights-out-active .provider-bar:hover,
body.lights-out-active #custom-tools-bar:hover {
  opacity: 1 !important;
}

body.lights-out-active .video-player-wrap {
  box-shadow: 0 0 100px rgba(255, 30, 86, 0.45), 0 30px 80px rgba(0, 0, 0, 1) !important;
  z-index: 999 !important;
  transform: scale(1.02);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-color: rgba(255, 30, 86, 0.25) !important;
}

body.lights-out-active .video-player-wrap::before {
  filter: blur(40px) !important;
  -webkit-filter: blur(40px) !important;
  opacity: 0.85 !important;
  background: radial-gradient(ellipse at center, rgba(255, 30, 86, 0.35) 0%, rgba(255, 172, 65, 0.15) 45%, transparent 70%) !important;
  animation: cinemaPulseIntense 4s ease-in-out infinite alternate !important;
}

@keyframes cinemaPulseIntense {
  0%   { opacity: 0.7; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1.04); }
}

.cinema-toggle-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cinema-toggle-btn:hover {
  background: rgba(255, 30, 86, 0.25);
  border-color: rgba(255, 30, 86, 0.5);
  color: #fff;
  transform: translateY(-2px);
}
.cinema-toggle-btn.active {
  background: rgba(255, 30, 86, 0.9);
  border-color: #ff1e56;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 30, 86, 0.5);
}
.cinema-toggle-btn .material-symbols-outlined {
  font-size: 1.15rem;
}

/* ==========================================================================
   KuroStream v0.4 — Unified Rich Micro-Animations System
   ========================================================================== */

/* 1. Fluid Gradient Text Shimmer */
@keyframes textShimmerFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text,
.animated-shimmer {
  background: linear-gradient(135deg, #ffffff 0%, #ffac41 25%, #ff1e56 50%, #38bdf8 75%, #ffffff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmerFlow 6s ease-in-out infinite;
}

/* 2. Neon CTA Button Glow Pulse */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(255, 30, 86, 0.4), 0 0 0 rgba(255, 30, 86, 0);
  }
  50% {
    box-shadow: 0 6px 22px rgba(255, 30, 86, 0.65), 0 0 14px rgba(255, 30, 86, 0.4);
  }
}

.nav-cta {
  animation: ctaPulse 3.5s ease-in-out infinite;
}

/* 3. Smooth Card Hover Lift & Border Shimmer */
.feature-card,
.history-card,
.product-card,
.stat-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease !important;
}

.feature-card:hover,
.history-card:hover,
.product-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 30, 86, 0.5) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 30, 86, 0.18) !important;
}

/* 4. Pulsing Status Dot Animation */
@keyframes pulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 30, 86, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(255, 30, 86, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 30, 86, 0); }
}

.pulse-dot {
  animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 5. Subtle Floating Drift for Badges */
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hero-badge,
.hero-badge-trust {
  animation: subtleFloat 4s ease-in-out infinite;
}

/* 6. Glowing Progress Fill Animation */
@keyframes progressGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 4px var(--accent)); }
  50% { filter: brightness(1.25) drop-shadow(0 0 10px var(--accent)); }
}

.progress-fill {
  animation: progressGlow 2.5s ease-in-out infinite;
}

/* ==========================================================================
   Anime Card Hover Elevation & Cursor (NO SIDEWAYS 3D TILT — CLEAN POP UP)
   ========================================================================== */
.anime-card,
.animecard-content,
.anime-grid .anime-card,
.anime-row .anime-card {
  perspective: none !important;
  -webkit-perspective: none !important;
  transform-style: flat !important;
  cursor: pointer !important;
  user-select: none;
}

.anime-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.animecard-content {
  cursor: pointer !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.28s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md, 12px) !important;
  overflow: hidden;
  background: rgba(17, 9, 14, 0.85) !important;
}

/* Little Pop Up on Hover: Smooth vertical lift & slight scale, NEVER tilt sideways */
.anime-card:hover {
  transform: translateY(-8px) !important;
  cursor: pointer !important;
}

.animecard-content:hover,
.anime-card:hover .animecard-content {
  transform: scale(1.028) !important;
  rotate: 0deg !important;
  rotateY: 0deg !important;
  transform-origin: center center !important;
  cursor: pointer !important;
  border-color: rgba(255, 172, 65, 0.65) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.7), 
              0 0 28px rgba(255, 30, 86, 0.42),
              0 0 0 1px rgba(255, 172, 65, 0.5) !important;
}

.anime-card-img-wrap,
.anime-card-overlay,
.anime-card-body,
.anime-card-title,
.anime-card-play {
  cursor: pointer !important;
}

.anime-card:hover .anime-card-img-wrap img {
  transform: scale(1.06) !important;
}

.anime-card:hover .anime-card-overlay {
  opacity: 1 !important;
  cursor: pointer !important;
}

/* Hide old bare chars-section from original bundle */
.chars-section {
  display: none !important;
}

/* ==========================================================================
   Voice Actress & Character Cast Showcase (Under Each Anime)
   ========================================================================== */
.va-section {
  margin-top: 28px;
  margin-bottom: 24px;
  background: rgba(17, 9, 14, 0.82) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: var(--radius-xl, 24px);
  padding: 22px 24px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.va-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff1e56, #ffac41, #ff1e56, transparent);
  opacity: 0.85;
}

.va-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.va-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.va-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 30, 86, 0.28), rgba(255, 30, 86, 0.28));
  border: 1px solid rgba(255, 30, 86, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.va-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.va-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

.va-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 30, 86, 0.12);
  border: 1px solid rgba(255, 30, 86, 0.3);
  color: #ffac41;
  font-size: 0.74rem;
  font-weight: 600;
}

/* Language Switcher Tabs (Sub vs Dub) */
.va-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 12, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.va-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.va-lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.va-lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #ff1e56, #ff4b2b);
  box-shadow: 0 2px 10px rgba(255, 30, 86, 0.4);
}

.va-lang-btn[data-lang="dub"].active {
  background: linear-gradient(135deg, #0284c7, #ff1e56);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.va-actress-btn.dub-btn {
  background: rgba(255, 172, 65, 0.14);
  border-color: rgba(56, 189, 248, 0.32);
}

.va-actress-btn.dub-btn:hover {
  background: linear-gradient(135deg, rgba(255, 172, 65, 0.28), rgba(255, 30, 86, 0.36));
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 4px 16px rgba(255, 172, 65, 0.3);
}

.va-actress-btn.dub-btn .va-actress-label {
  color: #38bdf8;
}

.va-actress-btn.dub-btn .va-actress-img {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.va-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.va-cast-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24, 27, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.va-cast-card:hover {
  background: rgba(30, 35, 56, 0.9);
  border-color: rgba(255, 172, 65, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 30, 86, 0.16);
}

/* Character Side */
.va-char-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.va-char-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.va-char-info {
  min-width: 0;
  flex: 1;
}

.va-char-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f0ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.va-char-role {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 600;
}

/* Connector Divider */
.va-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* Voice Actress Side (Interactive Button to Navigate to Other Animes) */
.va-actress-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  cursor: pointer;
  background: rgba(255, 30, 86, 0.14);
  border: 1px solid rgba(255, 172, 65, 0.3);
  border-radius: 10px;
  padding: 5px 9px;
  transition: all 0.22s ease;
  text-align: right;
}

.va-actress-btn:hover {
  background: linear-gradient(135deg, rgba(255, 30, 86, 0.28), rgba(255, 30, 86, 0.38));
  border-color: rgba(255, 30, 86, 0.6);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(255, 30, 86, 0.3);
}

.va-actress-info {
  min-width: 0;
}

.va-actress-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffac41;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.va-actress-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.va-actress-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff1e56;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 30, 86, 0.35);
}

/* ==========================================================================
   Voice Actress Filmography Modal (Full Anime Roles Explorer)
   ========================================================================== */
.va-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 12, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.va-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.va-modal-window {
  background: #0b0609;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  width: min(940px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 30, 86, 0.25);
  overflow: hidden;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.va-modal-backdrop.active .va-modal-window {
  transform: scale(1) translateY(0);
}

/* Modal Header with Profile */
.va-modal-header {
  position: relative;
  padding: 22px 26px;
  background: radial-gradient(ellipse at 50% -30%, rgba(255, 30, 86, 0.4) 0%, rgba(15, 17, 28, 0.96) 80%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
}

.va-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.va-modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

.va-profile-img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff1e56;
  box-shadow: 0 0 24px rgba(255, 30, 86, 0.5);
  flex-shrink: 0;
}

.va-profile-details {
  flex: 1;
  min-width: 0;
}

.va-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffac41;
  background: rgba(255, 30, 86, 0.18);
  border: 1px solid rgba(255, 30, 86, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.va-profile-name {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.va-profile-native {
  font-size: 0.95rem;
  color: #ffac41;
  font-weight: 600;
  margin-top: 2px;
}

.va-profile-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Modal Search & Filter Bar */
.va-filter-bar {
  padding: 12px 24px;
  background: rgba(14, 7, 11, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.va-search-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.86rem;
  width: min(340px, 100%);
  outline: none;
  transition: all 0.2s ease;
}

.va-search-input:focus {
  border-color: #ffac41;
  background: rgba(255, 172, 65, 0.1);
  box-shadow: 0 0 12px rgba(255, 172, 65, 0.25);
}

.va-roles-count {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Modal Body / Filmography Grid */
.va-modal-body {
  padding: 22px 24px 30px;
  overflow-y: auto;
  flex: 1;
}

.va-anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

.va-anime-card {
  background: rgba(22, 25, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.va-anime-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 172, 65, 0.6);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 22px rgba(255, 30, 86, 0.3);
}

.va-anime-poster-wrap {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: #131520;
}

.va-anime-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.va-anime-card:hover .va-anime-poster-wrap img {
  transform: scale(1.06);
}

.va-anime-score-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.va-anime-format-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 30, 86, 0.85);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.va-anime-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.va-anime-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f0ff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.va-anime-role-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.va-anime-role-tag img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 172, 65, 0.4);
  flex-shrink: 0;
}

.va-anime-role-name {
  font-size: 0.72rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.va-watch-now-btn {
  margin-top: 8px;
  width: 100%;
  padding: 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 30, 86, 0.35), rgba(255, 172, 65, 0.35));
  border: 1px solid rgba(255, 172, 65, 0.45);
  color: #e0e7ff;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.va-anime-card:hover .va-watch-now-btn {
  background: linear-gradient(135deg, #ff1e56, #ffac41);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 30, 86, 0.45);
}

.va-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: #ffac41;
}

.va-spinner-ring {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 172, 65, 0.25);
  border-top-color: #ff1e56;
  border-radius: 50%;
  animation: vaSpin 0.75s linear infinite;
}

@keyframes vaSpin {
  to { transform: rotate(360deg); }
}


