/* ============================================================
   TOKENS — هماهنگ با پالت اصلی سایت (طلایی/زرشکی)
   دقیقاً همون متغیرهای صفحات آرشیو / مراسمات / آثار صوتی / ویدئو
   ============================================================ */
:root{
  --bg: #100d0e;
  --bg-soft: rgba(255,255,255,0.045);
  --bg-soft-strong: rgba(255,255,255,0.07);
  --border-soft: rgba(201,151,74,0.18);
  --border-soft-strong: rgba(201,151,74,0.32);
  --gold: #c9974a;
  --gold-light: #eccb84;
  --maroon: #6e1b26;
  --maroon-light: #9c2e3b;
  --text: #f3ede2;
  --text-muted: rgba(243,237,226,0.55);
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease: cubic-bezier(.22,1,.36,1);

  /* رنگ برند اپراتورها — عمداً مستقل از پالت طلایی نگه داشته شده */
  --mci-blue: #355bf4;
  --mci-blue-light: #6d8bff;

  --neon: var(--gold);
}

/* ============================================================
   عنوان صفحه — هم‌استایل با بقیه‌ی صفحات
   ============================================================ */
h2{
  position: relative;
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  animation: fadeInDown .8s var(--ease);
}

h2::after{
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

@keyframes fadeIn{
  0%{ opacity: 0; transform: translateY(20px); }
  100%{ opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown{
  0%{ opacity: 0; transform: translateY(-20px); }
  100%{ opacity: 1; transform: translateY(0); }
}

/* ============================================================
   راهنمای بالای لیست
   ============================================================ */
.pishvaz{
  margin-bottom: 20px;
  animation: fadeIn .8s var(--ease) .1s both;
}

.pishvaz h6{
  color: var(--text-muted) !important;
  font-size: 13px;
  font-weight: 400;
  margin: 4px 0;
}

/* ============================================================
   لیست پیشواز‌ها
   نکته‌ی مهم برای اسکرول: تعداد آیتم‌ها می‌تونه زیاد باشه، پس
   هیچ backdrop-filter روی خود کارت‌ها گذاشته نشده.
   ============================================================ */
.audio-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  content-visibility: auto;
  contain-intrinsic-size: 90px 500px;
}
 

.img-audio img{
  margin: 10px;
  height: 50px;
  width: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  transition: border-color .3s var(--ease);
}

  .img-audio img{
  border-color: var(--gold);
}

.card-body{
  flex: 1;
  min-width: 0;
  margin-top: 0;
  color: var(--text);
  border-radius: 10px;
  height: auto;
}

.title-row{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-title{
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s var(--ease);
}

  .card-title{
  color: var(--gold-light);
}

.audio-meta{
  color: var(--text-muted);
  margin: 5px 0 0;
  font-size: 13px;
}

/* نشانگر اکولایزر — فقط وقتی کارت در حال پخشه نمایش داده میشه */
.now-playing-eq{
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex: 0 0 auto;
}

.now-playing-eq i{
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: eqBar .9s ease-in-out infinite;
}

.now-playing-eq i:nth-child(1){ animation-delay: 0s; }
.now-playing-eq i:nth-child(2){ animation-delay: .2s; }
.now-playing-eq i:nth-child(3){ animation-delay: .4s; }

@keyframes eqBar{
  0%, 100%{ height: 4px; }
  50%{ height: 12px; }
}

/* ============================================================
   کارتِ در حال پخش — استایل مجزا و واضح
   ============================================================ */
.audio-card.playing{
  background: linear-gradient(135deg, rgba(201,151,74,0.18), rgba(110,27,38,0.1));
  border-color: var(--gold);
  box-shadow:
    inset 3px 0 0 var(--gold),
    0 8px 22px rgba(0,0,0,0.35),
    0 0 16px rgba(201,151,74,0.2);
}

.audio-card.playing .card-title{
  color: var(--gold-light);
}

.audio-card.playing .img-audio img{
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(201,151,74,0.5);
}

.audio-card.playing .now-playing-eq{
  display: inline-flex;
}

.audio-card.playing .play-btn{
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  animation: playPulse 1.8s ease-in-out infinite;
}

@keyframes playPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(201,151,74,0.45); }
  50%{ box-shadow: 0 0 0 7px rgba(201,151,74,0); }
}

/* ============================================================
   اکشن‌ها (همراه اول / ایرانسل / پخش)
   ============================================================ */
.actions{
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex: 0 0 auto;
}

.action-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.action-item p{
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* دکمه‌ی کپی/ارسال کد همراه اول */
.copy-btn{
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--mci-blue-light), var(--mci-blue));
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

 

/* دکمه‌ی کپی/ارسال کد ایرانسل */
.copy-btn2{
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #1c1408;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

 

/* دکمه‌ی پخش */
.play-btn{
  margin: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #1c1408;
  background-color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}

 

/* ============================================================
   پلیر پایین صفحه — تک نمونه، بلور بی‌خطره
   ============================================================ */
#bottomAudioPlayer{
  position: fixed;
  bottom: -120px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(16,13,14,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-soft);
  color: var(--text);
  z-index: 15000;
  transition: bottom .4s var(--ease);
}

#bottomAudioPlayer.show{
  bottom: 0;
}

.close-btn{
  position: absolute;
  top: -25px;
  right: 15px;
  width: 35px;
  height: 35px;
  padding-top: 5px;
  background: rgba(16,13,14,0.92);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(201,151,74,0.25);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

 

.player-left{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cover{
  width: 50px;
  height: 50px;
  background: var(--bg-soft-strong);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  flex: 0 0 auto;
}

.info span{
  font-weight: bold;
  color: var(--text);
}

.info small{
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.player-center{
  flex: 1;
  max-width: 500px;
}

.controls{
  text-align: center;
  margin-bottom: 5px;
}

.controls button{
  background: var(--gold);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #1c1408;
  font-size: 16px;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}



.progress-container{
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  unicode-bidi: bidi-override;
  color: var(--text-muted);
  font-size: 12px;
}

#progressBar,
#volume{
  accent-color: var(--gold);
}

#progressBar{
  flex: 1;
}

.player-right{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

#volume{
  width: 100px;
}

@media (max-width: 768px){
  .player-right{
    display: none;
  }
  .cover{
    width: 40px;
    height: 40px;
  }
}

.top-header{ z-index: 15000 !important; }
.mobile-menu{ z-index: 15001 !important; }

@media (max-width: 480px){
  .actions{ gap: 8px; }
  .copy-btn, .copy-btn2{ width: 34px; height: 34px; font-size: 13px; }
  .play-btn{ width: 40px; height: 40px; font-size: 15px; }
  .action-item p{ font-size: 10px; }
}

@media (max-width: 360px){
  h2{ margin-top: 40px; font-size: 24px; }
  .card-title{ font-size: 13px; }
  .audio-meta{ font-size: 11px; }
}