@font-face {
  font-family: 'Ordibehesht';
  src: url('../fonts/Ordibehesht.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SahelBold';
  src: url('../fonts/Sahel-Bold-FD.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

 body {
      background: url('../images/backgrand.jpg') no-repeat center center fixed;
    background-size: cover;
      margin: 0;
  font-family: 'Ordibehesht', "Tahoma", sans-serif;
      direction: rtl;
}

.fancy-navbar {
  position: fixed;
  top: 26px;
  right: 0; left: 0;
  margin: 0 auto;
  width: 96vw;
  max-width: 1032px;
  min-height: 54px;
  z-index: 99;
  backdrop-filter: blur(11.3px) saturate(135%) brightness(1.18);
  background: rgba(35, 29, 78, 0.70);
  border-radius: 22px;
  box-shadow: 0 10px 32px 0 #11043020, 0 1.5px 25px #1d15596c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3em 1.1em 0.3em .8em;
  transition: background .35s, box-shadow .25s;
  border: 1.2px solid #edcb44a3;
}
.btn-login-nav {
  background: linear-gradient(90deg,#9c27b0 68%,#fbc02d 100%);
  color: #fff !important;
  font-weight: bold;
  padding: 7px 18px;
  border-radius: 30px;
  box-shadow: 0 1px 6px rgba(144,113,255,0.13);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  transition: background 0.2s, color 0.15s;
  border: none;
  font-size: 1.10em;
  margin-left: 9px;
}
.btn-login-nav:hover {
  background: linear-gradient(90deg,#fbc02d 44%, #9c27b0 110%);
  color: #49248f !important;
}
.fancy-navbar:hover, .fancy-navbar:focus-within { background: rgba(30,22,65,0.90);}
.navbar-brand {
  color: #edcb44 !important;
  font-weight: bold;
  font-size: 1.40rem;
  letter-spacing: .04em;
  text-shadow: 0 1px 12px #2e186a69;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: .3em;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  padding: .39em .96em;
  transition: background .22s;
}
.like-btn {
  background: none;
  border: none;
  padding: 0 3px 0 0;
  cursor: pointer;
  vertical-align: middle;
  outline: none;
  transition: transform .17s;
}
.like-btn.liked .heart-icon {
  fill: #ed577d !important;
  stroke: #ed577d !important;
  animation: pop-heart .25s;
}
@keyframes pop-heart {
  0% { transform: scale(1); }
  40% { transform: scale(1.27); }
  70% { transform: scale(0.93);}
  100% { transform: scale(1);}
}

.fancy-navbar ul {
  display: flex; gap: 1.2em; list-style: none; margin: 0; padding: 0;
}
.fancy-navbar li {display: flex;}
.fancy-navbar .nav-link {
  color: #ece6ff;
  font-weight: 500;
  padding: .58em 1.08em;
  border-radius: 1.6em;
  font-size: .90rem;
  letter-spacing: .01em;
  transition: background .21s, color .21s;
  text-decoration: none;
  position: relative;
}
.fancy-navbar .nav-link.active, .fancy-navbar .nav-link:hover, .fancy-navbar .nav-link:focus {
  color: #312050;
  background: linear-gradient(92deg,#f5e696b7 51%, #edcb44e3 98%);
  box-shadow: 0 3px 14px #edcb4472;
  font-weight: bold;
}
@media (max-width: 820px) {
  .fancy-navbar {max-width: 98vw; min-height: 45px; border-radius: 17px;}
  .fancy-navbar .navbar-brand {font-size: 1.10rem; border-radius: 10px;}
  .fancy-navbar ul {gap: .5em;}
  .fancy-navbar .nav-link {padding: .47em .7em; font-size: 1.0rem;}
}
@media (max-width: 600px) {
  .fancy-navbar {flex-direction: column; align-items: stretch; gap: 3px; max-width:99vw;}
  .fancy-navbar ul {flex-wrap: wrap; gap:.2em;}
}

.page-header {
  padding: 36px 0 18px 0;
  text-align: center;
}

.main-flex {
  display: flex;
  gap: 32px;
  max-width: 1280px;
  margin: 38px auto 18px auto;
  padding: 0 2vw;
}
.left-panel {flex: 0 0 70%;max-width: 70%;}
.right-panel {flex: 0 0 30%;max-width: 350px;min-width:230px;}
@media (max-width:1180px) {
  .main-flex {flex-direction:column;}
  .left-panel,.right-panel {max-width:100%;flex:none;}
  .right-panel {order:1;margin-bottom:34px;}
  .left-panel {order:2;}
}

.music-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  justify-items: center;
  align-items: stretch;
  
}
.music-card {
  background: rgba(47,25,74,0.81);
  border-radius: 14px;
  padding: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:0 2px 14px 0 #170e2e22;
  transition: box-shadow 0.13s;
  width: 100%;
  min-width: 0;
  max-width: 360px;
    height: 450px;

}
.music-card img {
  width: 100%;
  height: 160px;
  border-radius: 9px;
  object-fit: cover;
  background: #41305d;
  margin-bottom: 9px;
}
.music-card h6 {
  font: bold 1.08rem Vazirmatn;
  margin: 4px 0 0 0;
  color: #fed5ff;
}
.music-card p {
  margin: 4px 0 0 0;
  font-size: 1.0rem;
  color: #b7b1ea;
}
.music-card .stats-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 1.0rem;
  margin: 5px 0 2px 0;
  color: #dacbfa;
}
.music-card {
  background: rgba(47,25,74,0.85);
  border-radius: 16px;
  padding: 1.2em 1.1em 1em 1.1em;
  box-shadow: 0 4px 24px 0 #170e2e22;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 230px;
}

.music-card-info h6 {
  margin: 2px 0 0px 0;
  font-weight: 800;
  font-size: 1.24em;
  color: #fff;
  text-shadow: 0 2px 8px #2b116a2f;
}

.music-card-info p.album-label {
  margin: 4px 0 7px 0;
  font-size: 1.10em;
  color: #dddaff;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
}
.music-card-info .stats-row {
  display: flex;
  gap: 17px;
  justify-content: flex-start;
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 1.0em;
}
.music-card-info .stats-row span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #2716528c;
  padding: 3px 10px 3px 7px;
  border-radius: 13px;
  color: #ffedf5;
  font-weight: bold;
}

.readmore-btn {
  width: 100%;
  margin: 12px 0 0 0;
  background: linear-gradient(91deg,#7c22e3 0,#5133b3 100%);
  color: #fff;
  border: none;
  border-radius: 32px;
  font-weight: bold;
  font-size: 1.0em;
  padding: 11px 0 9px 0;
  box-shadow: 0 2px 22px #42009944;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  cursor: pointer;
  transition: background .16s, box-shadow .14s, transform .11s;
}
.readmore-btn:hover, .readmore-btn:focus {
  background: linear-gradient(89deg,#4e167e 8%,#281771 98%);
  color: #ffeaea;
  box-shadow: 0 4px 40px #7e1bff66;
  transform: translateY(-2px) scale(1.025);
}

.music-card .btn-play {
  background:#4a35b2;
  color:#fff;
  border:none;
  border-radius:12px;
  font-size:1.0em;
  padding:.37em 1.2em;
  transition:background .11s;
  cursor:pointer;
  margin-top:9px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.music-card .btn-play:hover{
  background:#301983;
}
.music-card .btn-readmore {margin-top:2px;font-size:1.0em;}
@media(max-width:600px){
  .music-cards-container {
    grid-template-columns: 1fr;
  }
  .music-card {
    max-width: 95vw;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 1.6em 0;
}
.pagination button {
  border: none;
  background: #544087;
  color: #fff;
  padding: .38em 1em;
  border-radius: 15px;
  font-size: 1.0em;
  cursor: pointer;
  transition: .1s;
}
.pagination button[disabled] {
  background: #ae9cdc88;
  cursor: default;
}
.pagination .page-number[disabled] {
  background: #311b5f;
  font-weight: bold;
}

/* Sidebar */
.side-box {
  background:rgba(58,36,97,0.89);border-radius:13px;padding:1.0em;margin-bottom:1em;box-shadow:0 4px 18px #180c3040;
}
.side-box h4 {margin-top:0;font-size:1.10em;color:#fad6ff;margin-bottom:.95em;}
.search-input{
  width:100%;padding:.7em 1em;border-radius:10px;border:none;font-size:1.10em;background:#271940;color:#fff;
  outline:none;box-shadow:0 1px 6px #2210461c;margin-bottom:.3em;
}
.cat-list,.author-list{list-style:none;margin:0;padding:0;}
.cat-list li,.author-list li{padding:.25em 0;}
.cat-list li a,.author-list li a{color:#ffdcf2;text-decoration:none;font-size:1.0em;transition:.12s;}
.cat-list li a:hover,.author-list li a:hover{color:#ffe4fa;text-decoration:underline;}
.cat-list .active a{color:#fed5ff;font-weight:bold;}

/* پلیر پایین صفحه */
#player-bottom-bar {
  position:fixed; right:0; left:0; bottom:0;z-index:999;
  background:linear-gradient(90deg,#3c1e50 80%,#523b86 100%);
  color:#fff;box-shadow:0 -2px 26px #32214a44;
  padding:1em 1.5vw .7em 1vw;
  display:none;align-items:center;gap:19px;
  border-radius:1.2em 1.2em 0 0;
  min-height:40px;
}
#player-bottom-bar img {
  width:48px;height:48px;margin-left:11px;border-radius:10px;background:#412d63;
  box-shadow:0 1px 10px #51369a81;
}
#player-bottom-bar .music-title {
  font-size:.90em;font-weight:600;
  color:#f1ebff;
  margin-bottom:2px;
}
#player-bottom-bar .player-close {
  background:none;color:#fff;border:none;font-size:40px;cursor:pointer;padding:0 9px;margin-right:2vw;}
@media (max-width:660px){
  #player-bottom-bar .music-title{font-size:1.10em;}
  #player-bottom-bar{flex-direction:column;align-items:flex-start;gap:10px;padding:10px 2vw 8px 1vw;}
  #player-bottom-bar img {margin-left:0;}
  #player-bottom-bar .player-close{position:absolute;top:0;left:0;}
}
#player-bottom-bar audio {width:230px;max-width:60vw;margin:0 13px;}
 footer.footer-site {
  margin-top: 2.3rem;
  padding: 1rem 0;
  background: rgba(20,20,70,0.12);
  text-align: center;
  color: #EEE;
  font-size: 1.0rem;
}
.footer-social {margin-bottom: .5rem;}
.footer-social a {
  display: inline-block; margin: 0 .25em; color: #edcb44;
  font-size: 1.27em; transition: color .2s;
}


.myket-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(91deg,#13addb 55%, #00d595 95%);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-weight: bold;
  font-size: 1.16rem;
  padding: .43em 1.12em .43em 1.2em;
  margin: 0 0.25em;
  box-shadow: 0 3px 18px #07bcbf51;
  text-decoration: none;
  transition: background .2s, transform .22s, box-shadow .23s;
  position: relative;
  overflow: hidden;
  direction: rtl;
}
.myket-btn:hover, .myket-btn:focus {
  background: linear-gradient(95deg, #03c8d8 65%, #00e2bc 98%);
  color: #312050;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 5px 24px #00ecc451;
}
.myket-icon {
  width: 70px;
  height: 45px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px #13addb28;
  margin-left: 6px;
}
@media (max-width:600px) {
  .myket-btn { font-size: 1.10rem; padding: .30em .8em .30em .9em;}
  .myket-icon { width: 29px; height: 29px;}
}


.direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(91deg,#27bc46 55%, #38ee75 95%);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-weight: bold;
  font-size: 1.16rem;
  padding: .43em 1.12em .43em 1.12em;
  margin: 0 0.25em;
  box-shadow: 0 3px 18px #079f2e36;
  text-decoration: none;
  transition: background .21s, transform .18s, box-shadow .18s;
  direction: rtl;
  position: relative;
  overflow: hidden;
}
.direct-btn:hover, .direct-btn:focus {
  background: linear-gradient(99deg, #17e24a 65%, #4fff83 98%);
  color: #242;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 5px 20px #25f17358;
}
.direct-icon {
  width: 45px;
  height: 45px;
  margin-left: 6px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 2px 8px #35ee3724;
}
@media (max-width:600px) {
  .direct-btn { font-size: 1.08rem; padding: .30em .9em .30em .9em;}
  .direct-icon { width: 26px; height: 26px;}
}

.footer-social a:hover { color:#fff; }

.music-card .img-wrap {
  position: relative;
  width: 99%;
  height: 260px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
   height: 260px;
}
.play-overlay-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(237,203,68,0.92);
  box-shadow: 0 2px 8px #edcb4454, 0 2px 20px #0001;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow .16s, transform .08s;
  padding: 0;
  outline: none;
}
.play-overlay-btn:hover,
.play-overlay-btn:focus {
  box-shadow: 0 4px 17px #fffcc94d, 0 2px 30px #edcb4465;
  transform: translate(-50%, -50%) scale(1.08);
  background: #fde98b;
}

.music-card-info .nametime-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3px;
  gap: 7px;
}
.music-card-info .nametime-row h6 {
  margin: 0;
  font-weight: 800;
  font-size: 1.0em;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 80%;
}
.music-card-info .music-date {
  color: #edcb44;
  font-size: .90em;
  background: #36275a71;
  border-radius: 14px;
  padding: 2px 10px 2px 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 400;
  white-space: nowrap;
}
.sidebar-title { font-size:1.10rem;font-weight:bold;color:#EEE; margin-bottom:15px; }
    .sidebar-part { margin-bottom:28px; }
    .sidebar-search form { display:flex;gap:7px; }
    #searchInput { flex:1;border-radius:8px;border:1px solid #edcb44;padding:7px 11px; }
    #searchBtn { background-color:#edcb44;color:#33077a;border:none;border-radius:7px; padding:7px 14px; font-weight:bold; }
    .singers-list { list-style:none; padding:0; margin: 0; max-height:280px; overflow-y:auto;}
    .singers-list li { margin-bottom:8px;}
    .singer-link { color:#33077a; text-decoration:none; font-weight:500; transition: color 0.13s;}
    .singer-link:hover { color:#edcb44; text-decoration:underline; }
    .music-main-area {
      width: 80vw; flex: 1 1 0; padding: 2vw 2vw 2vw 0;
      background: rgba(51,7,122,0.58); border-radius: 25px;
      min-height: 100vh; box-sizing: border-box;
      box-shadow: 0 5px 44px #2a097f1a;
      color: #fff;
    }
.music-card-info .music-date svg {
  margin-left: 3px;
}

/* ========== استایل پروفایل کاربر ========== */
.profile-info-nav {
  display: flex;
  align-items: center;
  padding: 3px 12px 3px 10px;
  border-radius: 100px;
  background: #2d174e;
  box-shadow: 0 1px 8px -2px rgba(109,34,171,0.13);
  margin-left: 7px;
  gap: .42em;
  min-width: 108px;
}
.profile-img-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbc02d;
  background:#fff;
}
.username-text-nav {
  color:#ffc300;
  font-weight: 600;
  font-size:1.10em;
  padding-left:7px;
  direction: rtl;
}
.btn-logout-nav {
  background: none;
  border: none;
  color: #ff618a;
  font-weight: 700;
  font-size: 1.10em;
  margin-right: 5px;
  margin-top: -3px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.13s;
}
.btn-logout-nav:hover {
  background: rgba(255,97,138,0.12);
}

#player-bottom-bar {
  position: fixed;
  bottom: 10px; /* فاصله از پایین */
  left: 50%;
  transform: translateX(-50%);
  width: 90%; /* عرض بیشتر */
  max-width: 800px; /* حداکثر عرض */
  background-color: #222; /* رنگ پس‌زمینه */
  color: #fff;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 1000;
  gap: 15px;
}

#player-bottom-bar img#player-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 8px #000;
}

#player-bottom-bar div {
  flex: 1;
  overflow: hidden;
}

#player-bottom-bar .music-title {
  font-weight: bold;
  font-size: 1.10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  margin-bottom: 5px;
}

#player-bottom-bar audio#musicPlayer {
  width: 100%;
  outline: none;
}

#player-bottom-bar button.player-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  user-select: none;
  padding: 0 8px;
  align-self: flex-start;
  line-height: 1;
  transition: color 0.2s ease;
}

#player-bottom-bar button.player-close:hover {
  color: #ed577d;
}
.cat-avatar {
  display: inline-block;
  width: 28px;         /* اندازه دایره یا مربع عکس */
  height: 28px;
  border-radius: 50%;  /* برای حالت دایره‌ای */
  background-size: cover;
  background-position: center;
  margin-left: 8px;
  vertical-align: middle;
}
.pagination-btn {
  background: #2c204c;
  color: #fff;
  border: 1px solid #adadc9;
  border-radius: 7px;
  margin: 0 2px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.17s, color 0.18s, box-shadow 0.16s;
}

.pagination-btn.active {
  background: linear-gradient(90deg, #FFD700, #FFC600 70%, #FFD700);
  color: #381966;
  border: 1.5px solid #FFD700;
  font-weight: bold;
  box-shadow: 0 2px 12px #ffd70080;
}

.cat-list.modern-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
    list-style: none;
}
.cat-list.modern-cats li {
    width: 100%; /* تا تنبل نباشن کنار هم */
    margin-bottom: 0;
}


/* Featured Slider Styles */
/* Featured Slider Styles */
.featured-slider-area {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
  border-radius: 20px;
  background: linear-gradient(145deg, #381966 10%, #6a4c93 90%);
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  text-align: center;
}

.slider-title {
  color: #edcb44;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(237, 203, 68, 0.5);
}

.slider-wrapper {
  display: flex;
  flex-direction: row-reverse; /* برای حالت RTL */
  justify-content: center;     /* وسط‌چین کردن افقی */
  align-items: flex-start;     /* آیتم‌ها هم‌سطح بالا */
  gap: 16px;
  overflow: visible;
  flex-wrap: nowrap;
  padding: 20px 0;
}

/* ← اشتباه قبلی: .featured-sli  ✅ درستش: */
.featured-slide {
  flex: 0 0 20%;              /* پنج آیتم در یک ردیف */
  max-width: 240px;
  background: rgba(42, 4, 67, 0.88);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
  padding: 10px;
  transition: transform .2s, box-shadow .2s;
}
.featured-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(237, 203, 68, 0.3);
}

.slide-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1; /* کاملاً مربعی */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
}

.slide-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  padding: 0 5px;
}

.slide-content h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.slide-content p {
  color: #b6abdf;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.slide-btn {
  background: #edcb44;
  color: #381966;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.slide-btn:hover {
  background: #ffdb58;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .featured-slide { flex: 0 0 30%; }
}
@media (max-width: 768px) {
  .featured-slide { flex: 0 0 45%; }
}
@media (max-width: 520px) {
  .featured-slide { flex: 0 0 85%; }
}

/* 🔥 محبوب‌ترین‌ها Sidebar */
/* 🔹 ساختار دو ستونه برای بهترین آهنگ‌ها */
.top-viewed-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* دو ستون مساوی */
  gap: 12px 10px; /* فاصله بین آیتم‌ها */
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-viewed-item {
  display: flex;
  align-items: center;
  background: #f7f5fb;
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.top-viewed-item:hover {
  transform: translateY(-3px);
}

.top-viewed-item img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  margin-left: 8px;
  object-fit: cover;
  border: 2px solid #e7c6ff;
}

.song-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.song-info .artist {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6a4c93;
}

.song-info .title {
  font-size: 0.8rem;
  color: #555;
}
.random-music-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
  direction: rtl;
}

.music-item {
  background: linear-gradient(135deg, #fff, #f8f5fb);
  border: 1px solid #e7c6ff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.music-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(106, 76, 147, 0.2);
}
.music-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e7c6ff;
}
.song-caption {
  padding: 5px;
}
.song-caption .song-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6a4c93;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.song-caption .album-name {
  display: block;
  font-size: 11px;
  color: #555;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.best-movies-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.best-movie-item {
  background: #221437;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.best-movie-item:hover {
  transform: translateY(-4px);
}

.best-movie-btn {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.best-movie-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #6a4c93;
}

.best-movie-info {
  width: 100%;
  padding: 10px 8px;
  background: linear-gradient(180deg, rgba(106,76,147,0.25) 0%, rgba(34,20,55,1) 100%);
}

.best-movie-title {
  display: block;
  color: #e7c6ff;
  font-weight: bold;
  font-size: 15px;
}

.best-movie-subtitle {
  display: block;
  color: #c7aefb;
  font-size: 13px;
  margin-top: 2px;
}
.media-thumb {
  width: 100%;
  height: 220px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  background: #000;
}
.play-overlay-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}
.music-card {
  position: relative;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.music-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.img-wrap {
  position: relative;
  overflow: hidden;
}
/* 📱 ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .random-music-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .random-music-grid { grid-template-columns: repeat(2, 1fr); }
}

.play-overlay-btn svg { display: block;}