@font-face {
  font-family: "EstedadDL";
  src: url("fonts/Estedad-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html body.app-body,
html body.app-body button,
html body.app-body input,
html body.app-body select,
html body.app-body textarea {
  font-family: "EstedadDL", "Vazirmatn", "Segoe UI", Tahoma, sans-serif!important;
}

@view-transition { navigation: none; }

/* Keep navigation labels readable on hover/active in every user page. */
html body.user-mode .site-header.pro-top-header .top-nav > a,
html body.user-mode .site-header.pro-top-header .top-nav > a > span,
html body.user-mode .site-header.pro-top-header .top-nav > a > b {
  color: #e9f8fb!important;
  -webkit-text-fill-color: currentColor!important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
html body.user-mode .site-header.pro-top-header .top-nav > a:hover,
html body.user-mode .site-header.pro-top-header .top-nav > a:focus-visible {
  color: #fff!important;
  background: #17627a!important;
  border-color: rgba(104,233,239,.58)!important;
  box-shadow: 0 9px 24px rgba(0,0,0,.20)!important;
}
html body.user-mode .site-header.pro-top-header .top-nav > a.active {
  color: #fff!important;
  background: #13536b!important;
  border-color: rgba(255,118,174,.58)!important;
}

/* Wider result rail and real 16:9 frames at desktop widths. */
@media (min-width: 1181px) {
  html body.user-mode > main.content-shell.content-shell {
    width: min(96vw,1580px)!important;
    max-width: 1580px!important;
  }
  html body.user-mode .player-layout-v16688.player-home.player-home-wide.pro-user-shell {
    grid-template-columns: minmax(0,1fr) 390px!important;
    max-width: 1580px!important;
    gap: 20px!important;
  }
  html body.user-mode .player-layout-v16688 .pro-results-panel,
  html body.user-mode .player-layout-v16688 .playlist-panel.compact-playlist.pro-results-panel {
    width: 390px!important;
    min-width: 390px!important;
    max-width: 390px!important;
  }
  html body.user-mode .player-layout-v16688 .pro-results-panel .pro-playlist-list { padding: 10px!important; }
  html body.user-mode .player-layout-v16688 .pro-playlist-list .playlist-item {
    grid-template-columns: 124px minmax(0,1fr)!important;
    min-height: 82px!important;
    padding: 8px!important;
    gap: 12px!important;
  }
  html body.user-mode .player-layout-v16688 .playlist-item .playlist-thumbnail-v16916 {
    width: 124px!important;
    min-width: 124px!important;
    height: 70px!important;
    border-radius: 11px!important;
  }
}

html body .playlist-thumbnail-v16916 img { image-rendering: auto; }
html body .playlist-thumbnail-v16916.is-unavailable::after {
  content: "تصویر در صف ساخت";
  position: absolute;
  z-index: 1;
  inset: auto 3px 3px;
  color: #c5d8dc;
  font-size: .52rem;
  text-align: center;
}

@media (max-width: 820px) {
  html body.mobile-results-open-v16916 .pro-results-panel .pro-playlist-list {
    max-height: calc(100vh - 195px)!important;
    max-height: calc(100dvh - 195px)!important;
  }
  html body .playlist-list .playlist-item,
  html body .pro-playlist-list .playlist-item { grid-template-columns: 86px minmax(0,1fr)!important; }
  html body .playlist-item .playlist-thumbnail-v16916 {
    width: 86px!important;
    min-width: 86px!important;
    height: 49px!important;
  }
}

/* v1.69.33: cross-page fade removed; content remains fully opaque during navigation. */

/* Admin thumbnail builder monitor. */
.thumbnail-admin-v16924 { margin: 18px 0!important; padding: 22px!important; }
.thumbnail-admin-head-v16924 { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.thumbnail-admin-head-v16924 h2 { margin:0 0 6px; }
.thumbnail-admin-head-v16924 p { margin:0; color:var(--muted); line-height:1.8; }
.thumbnail-admin-stats-v16924 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0 12px; }
.thumbnail-admin-stats-v16924 div { padding:13px; border-radius:14px; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.10); text-align:center; }
.thumbnail-admin-stats-v16924 b { display:block; color:#7ff4e8; font-size:1.25rem; direction:ltr; }
.thumbnail-admin-stats-v16924 span { color:#afc4cc; font-size:.78rem; }
.thumbnail-admin-progress-v16924 { height:12px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.09); }
.thumbnail-admin-progress-v16924 i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#20c9bc,#31a8e0); transition:width .3s ease; }
.thumbnail-admin-status-v16924 { display:flex; justify-content:space-between; gap:12px; margin-top:9px; color:#a9c1c8; font-size:.8rem; }
.thumbnail-admin-status-v16924 b { color:#e7fbfa; }

/* Firefox fallback when glass blur is unavailable or disabled. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body.user-mode .site-header.pro-top-header { background:#0d4059!important; }
  html body.user-mode .pro-player-card { background:#0b2029!important; }
  html body.user-mode .pro-results-panel { background:#123746!important; }
}

@media (max-width: 720px) {
  .thumbnail-admin-head-v16924 { align-items:stretch; flex-direction:column; }
  .thumbnail-admin-stats-v16924 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .thumbnail-admin-status-v16924 { flex-direction:column; }
}

@media (prefers-reduced-motion: reduce) {
  html.dl-page-enter-v16924 .content-shell { animation:none!important; }
  html.dl-page-leave-v16924 .content-shell { transition:none!important; transform:none!important; }
}
