@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;
}



.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-cards-containervedio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 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: 500px;

}
.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;
  }
}
@media(max-width:600px){
  .music-cards-containervedio {
    grid-template-columns: 1fr;
  }
  .music-card {
    max-width: 110vw;
  }
}

.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;
}

.btn-gold {
    color: #212121;
    background-color: #ffc107;
    border: 1px solid #ffb300;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.25s ease-in-out;
}
.btn-tight {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin-bottom: 0;
    vertical-align: middle;
}

.slide-title {
    color: #fff; /* جایگزین text-white */
    animation: slideFadeUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes slideFadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-gold:hover {
    color: #000;
    background-color: #ffca28;
    border-color: #ffb300;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
    text-decoration: none;
}

.btn-gold:active,
.btn-gold:focus {
    color: #000;
    background-color: #ffb300;
    border-color: #ffa000;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.4);
}

.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;
  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;
}
.album-label{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,#d4af37,#ffcc66);
  color:#2b1b00;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(212,175,55,.35);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.album-label:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(212,175,55,.5);
  filter:saturate(1.1);
}
.album-label:active{
  transform:translateY(0);
  box-shadow:0 4px 10px rgba(212,175,55,.35);
}

.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;
}


.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;
}
.video-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.6);
  z-index:9999;
}

.video-modal__content{
  width:90%;
  max-width:850px;
  background:#160f2e;
  padding:12px;
  border-radius:12px;
  position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
}

.video-modal__close{
  position:absolute;
  top:8px;
  left:8px;
  width:36px;
  height:36px;
  border-radius:50%;
  border:0;
  background:rgba(0,0,0,.65);
  color:#fff;
  font-size:22px;
  cursor:pointer;
  z-index:99999;
}

.video-modal__frame{
  position:relative;
  padding-top:56.25%;
  border-radius:10px;
  overflow:hidden;
}

.video-modal__frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}


.attention-box {
  opacity: 0;
  transform: translateX(40px) scale(0.92);
  transition: all 0.8s cubic-bezier(0.16, 0.84, 0.44, 1);
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  text-align: center;
  border: 1px solid #eee;
}

.attention-box.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}
/* افکت پالس ملایم که هر چند ثانیه جلب توجه کند */
.attention-box.show {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* افکت نور ملایم روی تصویر */
.attention-img {
  position: relative;
  overflow: hidden;
}

.attention-img::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    130deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.15) 40%,
    rgba(255,255,255,0) 80%
  );
  transform: rotate(10deg);
  animation: shine 6s ease-in-out infinite;
}

/* انیمیشن پالس برای کادر */
@keyframes pulseGlow {
  0%   { box-shadow: 0 6px 18px rgba(0,0,0,0.15); transform: scale(1); }
  50%  { box-shadow: 0 8px 26px rgba(0,0,0,0.25); transform: scale(1.015); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,0.15); transform: scale(1); }
}

/* انیمیشن حرکت نور روی عکس */
@keyframes shine {
  0%   { top: -120%; left: -80%; }
  50%  { top: 120%; left: 80%; }
  100% { top: -120%; left: -80%; }
}

.attention-img {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px auto;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.6s ease;
}

.attention-box.show .attention-img {
  opacity: 1;
  transform: scale(1);
}

.attention-text {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.7s ease 0.2s;
}

.attention-box.show .attention-text {
  opacity: 1;
  transform: translateY(0);
}
.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.bookmark-btn:hover {
    background-color: rgba(138, 125, 195, 0.1);
}

.bookmark-icon {
    transition: transform 0.2s;
}

.bookmark-btn:hover .bookmark-icon {
    transform: scale(1.1);
}
  /* حالت بوکمارک: پر و طلایی */
.bookmark-btn.bookmarked .bookmark-icon path {
    fill: #edcb44;
    stroke: #edcb44;
    transition: fill 0.25s ease, stroke 0.25s ease;
}


/* === راه‌حل اصلاح شده برای random-music-grid === */

/* استایل‌های پایه */
.random-music-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
  direction: rtl;
  width: 100%;
  box-sizing: border-box;
}

/* ریسپانسیو - ترتیب صحیح و اولویت بالا */
@media screen and (max-width: 1200px) {
  .random-music-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
  }
}

@media screen and (max-width: 992px) {
  .random-music-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
}

@media screen and (max-width: 768px) {
  .random-music-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
}

@media screen and (max-width: 576px) {
  .random-music-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

@media screen and (max-width: 480px) {
  .random-music-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
}

/* اطمینان از کارکرد صحیح آیتم‌ها */
.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;
  display: flex;
  flex-direction: column;
}

.music-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(106, 76, 147, 0.2);
}

.music-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #e7c6ff;
  display: block;
}

.song-caption {
  padding: 8px 6px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.song-caption .song-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6a4c93;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 3px;
}

.song-caption .album-name {
  display: block;
  font-size: 11px;
  color: #555;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* اصلاح استایل دکمه پخش */
.play-overlay-btn svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  fill: #381966 !important;
}

/* اطمینان از کارکرد grid */
@supports (display: grid) {
  .random-music-grid {
    display: grid !important;
  }
}

/* افزودن استایل debugging برای تست */
.debug-grid {
  border: 2px solid red !important;
  background: rgba(255,0,0,0.1) !important;
}

.debug-grid .music-item {
  border: 1px solid blue !important;
  background: rgba(0,0,255,0.1) !important;
}

.side-box {
    background: #6f42c1;
    border-radius: 16px;
    overflow: hidden;
}

.artist-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.artist-list-item:last-child {
    border-bottom: none;
}

.clickable-item {
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.clickable-item:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(-3px);
}

.artist-avatar {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clickable-item:hover .artist-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}

.play-icon {
    transition: transform 0.25s ease;
}

.clickable-item:hover .play-icon {
    transform: scale(1.15);
}

.like-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.like-btn svg {
  display: block;
}

.like-btn:hover {
  transform: scale(1.1);
}




.featured-slide{
  background: rgba(42,4,67,0.88);
  border-radius:12px;
  padding:10px;
  transition:.2s;
  height:100%;
}

.featured-slide:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 22px rgba(237,203,68,.3);
}

.slide-image-wrap{
  width:100%;
  aspect-ratio:1/1;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:10px;
}

.slide-image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.slide-content h4{
  font-size:1rem;
  color:#fff;
  margin-bottom:4px;
}

.slide-content p{
  font-size:.85rem;
  color:#c7bfff;
}
.comment-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,0.6);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
backdrop-filter:blur(4px);
}

.comment-box{
width:95%;
max-width:500px;
height:80vh;
background:linear-gradient(135deg,#2d004d,#5f0f8f);
border-radius:18px;
display:flex;
flex-direction:column;
overflow:hidden;
animation:fadeUp .3s ease;
color:#fff;
}

@keyframes fadeUp{
from{transform:translateY(30px);opacity:0;}
to{transform:translateY(0);opacity:1;}
}

.comment-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 20px;
font-size:18px;
font-weight:bold;
background:rgba(255,255,255,0.08);
}

.comment-header button{
background:none;
border:none;
color:#fff;
font-size:20px;
cursor:pointer;
}

.comment-list{
flex:1;
overflow-y:auto;
padding:15px;
}

.comment-item{
display:flex;
gap:10px;
margin-bottom:15px;
}

.comment-avatar{
width:40px;
height:40px;
border-radius:50%;
background:#fff;
flex-shrink:0;
}

.comment-body{
background:rgba(255,255,255,0.1);
padding:10px 12px;
border-radius:12px;
max-width:75%;
}

.comment-name{
font-weight:bold;
font-size:14px;
margin-bottom:4px;
}

.comment-text{
font-size:14px;
line-height:1.5;
}

.comment-send{
display:flex;
padding:12px;
gap:8px;
background:rgba(0,0,0,0.2);
}

.comment-send input{
flex:1;
border:none;
padding:10px 12px;
border-radius:20px;
outline:none;
font-size:14px;
}

.comment-send button{
position:relative;
background:#ff00cc;
border:none;
padding:10px 18px;
border-radius:20px;
color:#fff;
cursor:pointer;
font-weight:bold;
display:flex;
align-items:center;
justify-content:center;
gap:6px;
}

.comment-send button:disabled{
opacity:0.6;
cursor:not-allowed;
}

/* Loader */

.comment-loader{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:10px;
padding:20px;
}

.spinner{
width:30px;
height:30px;
border:4px solid rgba(255,255,255,0.3);
border-top:4px solid #fff;
border-radius:50%;
animation:spin 1s linear infinite;
}

@keyframes spin{
to{transform:rotate(360deg);}
}

.btn-loader{
width:16px;
height:16px;
border:3px solid rgba(255,255,255,0.4);
border-top:3px solid #fff;
border-radius:50%;
animation:spin .7s linear infinite;
}

.hidden{
display:none !important;
}
.stats-row{
display:flex;
align-items:center;
gap:22px;
margin-top:10px;
}

.stat-item{
display:flex;
align-items:center;
gap:6px;
}

.stat-item button{
background:none;
border:none;
cursor:pointer;
padding:0;
}

.stat-number{
font-size:14px;
color:#eee;
font-weight:600;
}

.like-btn.liked svg{
fill:#ed577d;
}

.bookmark-btn.bookmarked svg{
fill:#8a7dc3;
}

.play-overlay-btn svg { display: block;}