/* ============ layout.css — سایدبار ثابت راست + ناحیه محتوا ============ */

.app {
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 24px);
}

/* ---------- سایدبار (راست، ثابت) ---------- */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: var(--z-sidebar);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid var(--glass-border);
}
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.45);
}
.brand__mark i { font-size: 22px; color: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__title { font-weight: 700; font-size: 1.15rem; }
.brand__sub { font-size: 0.72rem; color: var(--muted-foreground, #d6d3d1); }

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted-foreground, #d6d3d1);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav__item i { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.nav__item:hover {
  background: rgba(185, 28, 28, 0.16);
  color: var(--foreground, #f5f5f4);
}
.nav__item.is-active {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.9), rgba(127, 29, 29, 0.85));
  color: #fff;
  box-shadow: 0 8px 22px rgba(185, 28, 28, 0.4);
}

.sidebar__foot {
  margin-top: auto;
  font-size: 0.7rem;
  color: var(--muted-foreground, #a8a29e);
  text-align: center;
  opacity: 0.7;
}

/* ---------- ناحیه محتوا (چپ) ---------- */
.main {
  margin-right: var(--sidebar-w);
  padding: 0 28px 28px;
}

/* شبکه کارت‌ها */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

/* ریسپانسیو → responsive.css */
