/* ============ base.css — ریست، تایپوگرافی، RTL، body ============ */

@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* glass */
  --glass-bg: rgba(41, 37, 36, 0.45);
  --glass-bg-strong: rgba(41, 37, 36, 0.7);
  --glass-border: rgba(245, 245, 244, 0.12);
  --glass-blur: 16px;

  /* badges */
  --badge-gold: #fbbf24;
  --badge-gold-glow: rgba(251, 191, 36, 0.5);
  --badge-new: #ef4444;
  --badge-new-glow: rgba(239, 68, 68, 0.5);

  /* neon */
  --neon-red: #ff2d2d;
  --neon-glow: 0 0 8px rgba(255, 45, 45, 0.8), 0 0 18px rgba(255, 45, 45, 0.45);
  --spotlight: rgba(255, 70, 70, 0.55);

  /* layout */
  --sidebar-w: 248px;
  --player-h: 92px;
  --z-sidebar: 40;
  --z-navbar: 30;
  --z-player: 50;
  --z-loader: 100;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  color: var(--foreground, #f5f5f4);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background, #1c1917);
}

/* لایه پس‌زمینه ثابت با بلر و تیرگی — filter روی خود المان */
body::before {
  content: "";
  position: fixed;
  inset: -20px;
  z-index: -2;
  background: url("../images/bg.png") center / cover no-repeat;
  filter: blur(20px) brightness(0.5);
  -webkit-filter: blur(20px) brightness(0.5);
}

/* لایه overlay رنگی */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(185, 28, 28, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(127, 29, 29, 0.14), transparent 55%),
    rgba(28, 25, 23, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* اسکرول‌بار */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(185, 28, 28, 0.5);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-red);
}

:focus-visible {
  outline: 2px solid var(--neon-red);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



* {
  box-sizing: border-box;
}