@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f0f2f5;
  color: #1a202c;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

.dark body {
  background-color: #0b1622;
  color: #9fadbd;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #f0f2f5;
}
.dark ::-webkit-scrollbar-track {
  background: #0b1622;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 20px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

.glass {
  background: rgba(255,255,255,.7) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(0,0,0,.05);
}
.dark .glass {
  background: rgba(21,31,46,.6) !important;
  border: 1px solid rgba(255,255,255,.05);
}

.text-gradient {
  background: linear-gradient(135deg,#1a202c 0%,#3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dark .text-gradient {
  background: linear-gradient(135deg,#ffffff 0%,#3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  position: relative;
  transition: all .3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width .3s ease;
  box-shadow: 0 0 10px rgba(59,130,246,.5);
}
.nav-link:hover::after { width: 100%; }

.card-shadow {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,.05);
  transition: all .5s cubic-bezier(.23,1,.32,1);
  overflow: hidden;
}
.dark .card-shadow {
  background: rgba(21,31,46,.4);
  border: 1px solid rgba(255,255,255,.08);
}
.card-shadow::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59,130,246,.3), transparent, rgba(59,130,246,.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .2;
  transition: opacity .5s ease;
}
.dark .card-shadow::before {
  background: linear-gradient(135deg, rgba(255,255,255,.3), transparent, rgba(59,130,246,.4));
  opacity: .4;
}
.card-shadow:hover {
  transform: translateY(-12px) scale(1.02);
  background: #fff;
  border-color: rgba(59,130,246,.3);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.1);
  z-index: 20;
}
.dark .card-shadow:hover {
  background: rgba(21,31,46,.8);
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.7), 0 0 20px rgba(59,130,246,.2);
}
.card-shadow:hover::before { opacity: 1; }

.img-scale { transition: transform .8s cubic-bezier(.23,1,.32,1); }
.card-shadow:hover .img-scale { transform: scale(1.1); filter: brightness(1.1); }

.genre-tag {
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.15);
  color: #3b82f6;
  transition: all .3s ease;
}
.genre-tag:hover {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 0 15px rgba(59,130,246,.4);
}

.loader {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  animation: rotation 1s linear infinite;
}
.dark .loader { border-color: #151f2e; }
.loader::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: #3b82f6;
}
@keyframes rotation { 0%{transform:rotate(0)}100%{transform:rotate(360deg)} }

#nav-content {
  transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .4s ease-in-out, margin .4s ease-in-out;
}
#progress-bar { transition: stroke-dashoffset .1s linear; }

.max-h-0 { max-height: 0 !important; }
.max-h-screen { max-height: 100vh !important; }
#nav-content::-webkit-scrollbar { display: none; }