/* --------------------------------------------------------
   فونت
-------------------------------------------------------- */
@font-face{
  font-family:'Nastaliq';
  src:url('/fonts/IranNastaliq.ttf') format('truetype');
}

/* --------------------------------------------------------
   پایه
-------------------------------------------------------- */
*{
  box-sizing:border-box;
}

html{
  overflow-y:scroll;
}

body{
  margin:0;
  direction:rtl;
  font-family:'Vazirmatn', sans-serif;
  background:url('/images/background.webp') center/cover no-repeat fixed;
  color:#FFD700;
  padding-bottom:70px;
}

/* --------------------------------------------------------
   اسکرول طلایی
-------------------------------------------------------- */
body::-webkit-scrollbar{
  width:16px;
}

body::-webkit-scrollbar-track{
  background:rgba(0,0,0,0.6);
  border-radius:12px;
}

body::-webkit-scrollbar-thumb{
  background:linear-gradient(
    180deg,
    #fff8c0,
    #FFD700,
    #ffb700,
    #FFD700,
    #fff8c0
  );
  border-radius:12px;
  border:3px solid rgba(0,0,0,0.5);
  box-shadow:0 0 10px rgba(255,215,0,.8);
}

body::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#ffffff,#FFD700,#ffc400,#FFD700);
  box-shadow:0 0 18px rgba(255,215,0,1);
}

/* --------------------------------------------------------
   عنوان
-------------------------------------------------------- */
header{
  padding:15px;
  text-align:center;
  font-size:34px;
  border-bottom:1px solid #444;
  font-family:'Nastaliq';
}

.copyright-note{
font-size:20px;
color:#888;
opacity:0.8;
display:block;
margin-top:2px;
}

/* --------------------------------------------------------
   کانتینر
-------------------------------------------------------- */
.musicPage{
  width:100%;
  max-width:1400px;
  margin:auto;
  padding:20px 20px 40px;
}

/* --------------------------------------------------------
   جستجو
-------------------------------------------------------- */
#search{
  position:sticky;
  top:20px;
  z-index:4;

  width:640px;
  margin:0 auto 20px;
  display:block;

  padding:12px 14px;
  border-radius:20px;
  border:none;
  outline:none;

  background:rgba(0,0,0,0.9);
  color:#FFD700;
  font-size:14px;

  box-shadow:
    0 0 10px rgba(255,215,0,.2),
    inset 0 0 8px rgba(0,0,0,.6);

  transition:.3s;
}

#search:focus{
  box-shadow:
    0 0 15px rgba(255,215,0,.6),
    0 0 30px rgba(255,215,0,.4);
}

/* --------------------------------------------------------
   highlight
-------------------------------------------------------- */
mark{
  background:#FFD700;
  color:black;
  padding:0 3px;
  border-radius:3px;
}

/* ===== Artist Grid ===== */

.artist-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:16px;
  padding:0 10px 40px;
}

/* ===== Card ===== */

.artist-card{
  background:rgba(0,0,0,.65);
  border:1px solid rgba(255,215,0,.25);
  border-radius:14px;
  padding:10px;
  text-align:center;
  cursor:pointer;

  box-shadow:0 6px 20px rgba(0,0,0,.6);
  transition:.3s;

  min-width:0;                 /* مهم برای موبایل */
}

.artist-card:hover{
  transform:translateY(-4px);
  border-color:#FFD700;
}

/* ===== Link wrapper ===== */

.artist-card a{
  display:block;
  text-decoration:none;
  min-width:0;                 /* مهم */
}

/* ===== Cover ===== */

.artist-cover{
  aspect-ratio:1/1;
  border-radius:10px;
  overflow:hidden;
}

.artist-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ===== Name ===== */

.artist-name{
  margin-top:6px;
  font-size:16px;
  color:#FFD700;

  white-space:nowrap;          /* فقط یک خط */
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ===== Meta ===== */

.artist-meta{
  margin-top:4px;
  font-size:13px;
  opacity:.8;
  color:#FFD700;
}

/* ===== Mobile ===== */

@media(max-width:768px){
  .artist-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .artist-name{
    font-size:15px;
  }

  #search{
    width:250px;
  }

}
