/* ============ sections.css — تایتل بخش‌ها، گرید ویدئو/هنرمند/ژانر، مودال ============ */

/* ---------- تایتل بخش ---------- */
.section-header {
  margin-top: 40px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  font-size: 1.1rem;
  color: var(--neon-red, #ff2d2d);
  filter: drop-shadow(0 0 6px rgba(255, 45, 45, 0.4));
}

/* ---------- دکمه load more دوتایی ---------- */
.load-more-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 8px;
  flex-wrap: wrap;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 90, 90, 0.5);
  color: var(--foreground, #f5f5f4);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(185, 28, 28, 0.2);
  box-shadow: var(--neon-glow);
}

.btn i {
  margin-left: 2px;
}

/* ---------- گرید ویدئو — مثل سرودها auto-fill ---------- */
.grid--videos {
  grid-template-columns: 33% 30% 30%;
  justify-content: space-between;
}

/* ---------- کارت ویدئو (مشابه کارت سرود) ---------- */
.vcard {
  position: relative;
  border-radius: 18px;
  padding: 12px;
  background: #0000007a;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--glass-border, rgba(245, 245, 244, 0.12));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.vcard:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.vcard__thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}

.vcard__thumb img {
  display: none;
}

.vcard__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vcard:hover .vcard__play {
  opacity: 1;
}

.vcard__play-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.5);
  transition: box-shadow 0.2s ease;
}

.vcard__play-icon i {
  font-size: 17px;
  color: #fff;
  margin-right: 2px;
}

.vcard__play-icon:hover {
  box-shadow: var(--neon-glow), 0 6px 18px rgba(185, 28, 28, 0.5);
}

.vcard__duration {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.vcard__body {
  padding: 12px 6px 6px;
}

.vcard__title {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard__artist {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted-foreground, #d6d3d1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard__meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted-foreground, #a8a29e);
}

.vcard__meta-row i {
  font-size: 0.7rem;
  margin-left: 3px;
}

/* ---------- کارت هنرمند (پروفایل) ---------- */
.grid--artists {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.acard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  border-radius: 18px;
  background: var(--glass-bg, rgba(41, 37, 36, 0.45));
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--glass-border, rgba(245, 245, 244, 0.12));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.acard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.acard__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border, rgba(245, 245, 244, 0.12));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acard:hover .acard__avatar {
  border-color: var(--neon-red, #ff2d2d);
  box-shadow: 0 0 20px rgba(255, 45, 45, 0.35);
}

.acard__name {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.acard__count {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted-foreground, #d6d3d1);
}

.acard__count i {
  margin-left: 4px;
  color: var(--neon-red, #ff2d2d);
}

/* ---------- کارت ژانر ---------- */
.grid--genres {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.gcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px;
  border-radius: 18px;
  background: var(--glass-bg, rgba(41, 37, 36, 0.45));
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--glass-border, rgba(245, 245, 244, 0.12));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  gap: 12px;
}

.gcard:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 70, 70, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 45, 45, 0.15);
}

.gcard__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.7), rgba(127, 29, 29, 0.6));
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35);
  transition: box-shadow 0.25s ease;
}

.gcard:hover .gcard__icon {
  box-shadow: var(--neon-glow), 0 6px 18px rgba(185, 28, 28, 0.35);
}

.gcard__icon i {
  font-size: 22px;
  color: #fff;
}

.gcard__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.gcard__count {
  font-size: 0.78rem;
  color: var(--muted-foreground, #d6d3d1);
}

/* ---------- مودال ویدئو ---------- */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.vmodal[hidden] {
  display: none;
}

.vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.vmodal__body {
  position: relative;
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-bg-strong, rgba(41, 37, 36, 0.85));
  border: 1px solid var(--glass-border, rgba(245, 245, 244, 0.12));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.vmodal__close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border, rgba(245, 245, 244, 0.12));
  color: #fff;
  font-size: 16px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.vmodal__close:hover {
  background: rgba(185, 28, 28, 0.6);
  box-shadow: var(--neon-glow);
}

.vmodal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vmodal__player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vmodal__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted-foreground, #a8a29e);
}

.vmodal__placeholder i {
  font-size: 42px;
  opacity: 0.4;
}

.vmodal__placeholder p {
  font-size: 0.9rem;
}

.vmodal__info {
  padding: 16px 20px;
}

.vmodal__title {
  font-weight: 700;
  font-size: 1.1rem;
}

.vmodal__artist {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted-foreground, #d6d3d1);
}

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