 @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;
      color:#fff; margin:0; padding:0;
    }
    main.media-detail-container {
      max-width: 1120px; margin:80px auto 28px; background:rgba(34,14,54,0.40);
      border-radius:20px; box-shadow:0 9px 44px #34045c18;
      padding: 28px 3vw 33px 3vw; box-sizing:border-box;
    }
    /* بالا: پوستر و اطلاعات */
    .section-header {
      display: flex; gap: 28px; align-items: flex-start; margin-bottom: 30px;
    }
    .poster {
      flex:0 0 130px; height:400px; border-radius:16px; background:#12041c;
      box-shadow:0 8px 30px #af47fd35; object-fit:cover;
    }
    .info-block {
      flex:1; display:flex; flex-direction:column; gap: 12px;
    }
    .title {font-size:1.38rem; color:#ffe668; font-weight:700;}
    .title-en {font-size:.98rem; color:#d9cfff; font-weight:400; margin-bottom:7px;}
    .genres {display:flex; flex-wrap:wrap; gap:7px;}
    .genre {background:linear-gradient(88deg,#25013f 60%,#af47fd 140%);
      color:#ffe668; padding:3px 14px; border-radius:15px; font-size:.98em;}
    .info-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #170927de;
  padding: 7px 8px 7px 10px;
  border-radius: 10px;
  font-size: .98em;
}
.info-grid span {
  display: block;
}
.breadcrumb-nav {
  margin: 15px 0 25px;
  text-align: right;
}

.breadcrumb {
  display: inline-block;
  padding: 0;
  list-style: none;
  background: none;
}

.breadcrumb li {
  display: inline;
  color: #ffcc00; /* 👈 کل متن طلایی */
  font-size: 0.9em;
}

.breadcrumb li + li:before {
  content: "›";
  margin: 0 6px;
  color: #ffcc00; /* جداکننده هم طلایی */
}

.breadcrumb a {
  color: #ffcc00;
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover {
  color: #fff; /* هاور سفید بشه برای کنتراست */
}

    .info-grid b {color: #ffe668;}
    /* وسط: دو ستون */
    .section-middle {
      margin-bottom:32px;
      display:flex; flex-direction:row; gap: 34px;
    }
    .trailer-block {
      width: 49%; min-width:220px; background:#1b0834;
      border-radius:15px; overflow:hidden;
      box-shadow:0 9px 32px #af47fd19;
      display:flex; align-items:center; justify-content:center;
      min-height:196px;
    }
    .trailer-block video{
      width:100%; height:260px; background:#120728; object-fit:cover; border:none;
    }
    .about-block {
      width: 51%; background:#220c3fda; border-radius:15px;
      box-shadow:0 4px 17px #af47fd0f;
      padding:23px 20px; font-size:1.08em; line-height:2.1;
      color:#f8e6ff; display:flex; flex-direction:column; justify-content:center;
    }
    .about-block h2{color:#ffe668; font-size:1.07rem; margin:0 0 9px 0;}

    /* پایین: فصل‌ها و قسمت‌ها */
    .section-bottom {
      margin-top:11px; background:#18092bde; border-radius:11px; padding:14px 18px;
      font-size:1.01em;
    }
    .section-bottom h2 {color:#ffe668;font-size:1.09em;margin-bottom:9px;}
    /* Responsive */
    @media (max-width:900px){
      main.media-detail-container{padding:17px 1vw 17px 1vw;}
      .section-header{flex-direction:column;gap:11px;align-items:stretch;}
      .poster{width:110px;height:156px;}
    }
    @media (max-width:700px){
      .section-middle{flex-direction:column;gap:15px;}
      .trailer-block,.about-block{width:100%; min-height:145px;}
      .trailer-block video{height:190px;}
    }
    @media (max-width:490px){
      .poster{width:78px;height:106px;}
      .title{font-size:1.05rem;}
      .about-block{padding: 9px 6px;font-size:.95em;}
      .section-bottom{padding:7px 5px;}
    }
    
    
    .stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.3rem;
  margin: 24px 0 14px 0;
  background: linear-gradient(91deg, #170927de 50%, #270963d5 120%);
  border-radius: 1.2rem;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 3px 14px #2f0e4b32;
  font-family: 'Ordibehesht', Tahoma, sans-serif;
  font-size: 1.08em;
  /* وسط‌چین در حالت تک‌ستونه هم */
  text-align: center;
}

.stats-row .stat-item {
  display: flex;
  align-items: center;
  gap: .38em;
  color: #ffe668;
  font-weight: 600;
  font-size: 1.05em;
  border-radius: 0.9em;
  padding: 2px 9px;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 1px 5px #20032f18;
  transition: background 0.18s, color 0.18s;
}

.stats-row .stat-item .icon {
  font-size: 1.18em;
  margin-left: 6px;
  /* برای تست جایگزین SVG بشه زیباتر هم میشه! */
}

/* افکت هاور */
.stats-row .stat-item:hover {
  background: #ffe66811;
  color: #ff9868;
}

@media (max-width: 600px) {
  .stats-row {
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.99em;
    padding: .6rem .7rem;
  }
}



.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: 1.5rem;*/
  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 { 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;}
}


.play-dl-btn {
  background: linear-gradient(90deg, #FFD700 0%, #FFBA08 100%);
  color: #000;
  border: 2px solid #fff;
  border-radius: 32px;
  padding: 12px 32px;
  font-size: 1.20rem;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: 
    background 0.35s cubic-bezier(.4,2,.44,.96),
    color 0.18s,
    border-color 0.25s;
  box-shadow: 0 3px 15px 0 rgba(255, 215, 0, 0.12);
  outline: none;
  display: inline-block;
  text-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.play-dl-btn:hover, .play-dl-btn:focus {
  background: linear-gradient(90deg, #ff8008 0%, #ff0015 100%);
  color: #000;
  border-color: #fff;
  box-shadow: 0 3px 30px 0 rgba(255, 64, 0, 0.20);
}



/* ---------- Comment Box & Comments ---------- */
.comment-box {
  background: rgba(27,14,56,.77); border-radius: 13px; padding: 24px 10px;
  margin-top: 48px;
}
#comments { margin-top: 18px; }
.comment {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #2f175388;
  border-radius: 9px;
  padding: 13px 18px;
  margin-bottom: 12px;
}


.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: 1em;
  margin-left: 9px;
}
.btn-login-nav:hover {
  background: linear-gradient(90deg,#fbc02d 44%, #9c27b0 110%);
  color: #49248f !important;
}
.comment-author-img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border: 2px solid #FFD700;
  background: #fff;
  box-shadow: 0 2px 8px #0001;
}
.comment-body { flex:1; }
.comment-username { color: #ffd700; font-size: 1.03em; font-weight: 700; }
.comment-date { font-size: 0.91em; color: #b1aaff; margin-right: 7px; }
.no-comment { color: #bb86fc; text-align: center; }
.form-label { color: #fff; }
textarea { color: #222; background: #fff; }


/* ---------- Success Btn Override ---------- */
.btn-success {
  background: linear-gradient(90deg,#9d39e7 60%,#FFD700 90%);
  border: none;
}

.btn {
  padding: 8px 20px !important;
}

.comment-form-container {
  background: #26234fcc;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(80, 38, 174, 0.11);
  max-width: 470px;
  margin: 30px auto; /* در صورت نیاز */
  border: 1px solid #402b8c33;
}

.form-label {
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 7px;
  display: block;
  font-size: 1rem;
}

.styled-textarea {
  width: 90%;
  background: #1b1839;
  border: 1.5px solid #8863e1;
  border-radius: 10px;
  color: #fff;
  padding: 14px 13px;
  font-size: 1rem;
  resize: vertical;
  box-shadow: none;
  transition: border-color 0.22s;
}
.styled-textarea:focus {
  border-color: #ffd700;
  outline: none;
}
#mediaad-1dyzZ,
#mediaad-1dyzZ * {
  color: #fff !important;
}

.char-count {
  font-size: 0.82rem;
  color: #b6afff;
  margin-top: 5px;
  text-align: left;
  direction: rtl;
}
.btn-comment {
  background: linear-gradient(90deg, #ffcd38 0%, #ff9800 100%);
  color: #fff;
  border: none;
  padding: 11px 28px;   /* پدینگ: ارتفاع 11px و عرض 28px */
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 600;
  box-shadow: 0 2px 9px #ffe39a33;
  transition: 0.15s;
  cursor: pointer;
  display: inline-block;
  margin: 8px 0;
  text-decoration: none !important;
}

.btn-comment:hover, .btn-comment:focus {
  background: linear-gradient(90deg, #ffd86b 0%, #ffa022 100%);
  color: #fff;
  transform: scale(1.045);
  box-shadow: 0 5px 18px #ffb40077;
  text-decoration: none;
}

/* ========== استایل پروفایل کاربر ========== */
.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:1em;
  padding-left:7px;
  direction: rtl;
}
.btn-logout-nav {
  background: none;
  border: none;
  color: #ff618a;
  font-weight: 700;
  font-size: 1.02em;
  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);
}
.audio-player-box {
  padding: 16px 8px 2px 8px;
  margin: 0 auto 12px auto;
  text-align: center;
  background: #27104aeb;
  border-radius: 13px;
  box-shadow: 0 2px 12px #26006744;
}
audio {
  width: 96%; margin: 0 auto; accent-color: #FFD700;
}


.download-links {
  margin-top: 1rem; display: flex; justify-content: center; gap: 1rem;
}
.download-links a {
  background: linear-gradient(90deg, #651fff 70%, #FFD700 100%);
  color: #fff !important;
  font-weight: bold; border-radius: 10px;
  margin-left: 10px; margin-right: 0; transition: box-shadow .2s;
}
.download-links a:hover {
  box-shadow: 0 4px 12px #ffd70055;
  color: #33006F !important;
}

.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;
}

.tags {
  display: flex;
  flex-wrap: wrap;          /* اجازه بده برچسب‌ها بشکنن و توی ردیف بعدی برن */
  gap: 8px;                 /* فاصله بین برچسب‌ها */
  white-space: normal;      /* جلوگیری از یک‌خطی شدن */
  word-wrap: break-word;    /* شکستن کلمات طولانی */
  overflow-wrap: anywhere;  /* حتی اگر کلمه خیلی بلند بود باز هم بشکنش */
  direction: rtl;
}

.tags a, .tags span {
  display: inline-block;
  background: rgba(255,255,255,0.10);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.tags a:hover {
  background: rgba(255,255,255,0.25);
  color: #FFCC00;
}

/* در فایل style.css یا بخش <style> خود اضافه کنید */
.styled-input {
    width: 100%;
    padding: 10px 15px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f8f8;
    color: #333;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* برای اینکه padding و border به width اضافه نشوند */
    font-family: 'Vazirmatn', sans-serif; /* فونت فارسی */
}

.styled-input:focus {
    border-color: #FFD700; /* طلایی در فوکوس */
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    background-color: #fff;
    outline: none;
}

/* اگر نیاز به استایل خاص برای فیلد readonly دارید */
.styled-input[readonly] {
    background-color: #eee;
    cursor: not-allowed;
}

/* استایل textarea فعلی شما (اگر هنوز وجود ندارد، اضافه کنید) */
.styled-textarea {
    width: 100%;
    padding: 10px 15px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f8f8;
    color: #333;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: vertical; /* اجازه تغییر اندازه عمودی */
    font-family: 'Vazirmatn', sans-serif; /* فونت فارسی */
}

.styled-textarea:focus {
    border-color: #FFD700; /* طلایی در فوکوس */
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    background-color: #fff;
    outline: none;
}
.trailer-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-short-text {
    font-size: 14.5px;
    line-height: 1.9;
    margin: 0;
    color: #333;
}

.download-app-box {
    display: flex;
    flex-direction: column;
}

.download-app-btn {
    display: block;
    background: #007bff;
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.download-app-btn:hover {
    background: #005fcc;
}

.footer-social a:hover { color:#fff; }