@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn/vazirmatn-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #121314;
  --bg-elevated: #1c1d1f;
  --bg-card: #232427;
  --text: #f2efe9;
  --text-muted: #9b958c;
  --accent: #e5a020;
  --accent-hover: #f0b23a;
  --border: #2e3034;
  --danger: #e06c5c;
  --font-display: "Vazirmatn", system-ui, sans-serif;
  --font-body: "Vazirmatn", system-ui, sans-serif;
  --header-h: 3.5rem;
  --player-h: 6.75rem;
  --max-w: 80rem;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  direction: rtl;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: var(--player-h);
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 19, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  flex: 1;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--text);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  margin-bottom: 2.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-head h2,
.section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.section-link {
  font-size: 0.9rem;
}

.page-head {
  margin-bottom: 2rem;
}

.page-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.35rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.muted {
  color: var(--text-muted);
}

.meta-dot {
  color: var(--text-muted);
  margin: 0 0.35rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
}

.catalog-card {
  display: block;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.catalog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.catalog-card h3 {
  font-size: 0.95rem;
  margin: 0.65rem 0 0.2rem;
  font-weight: 600;
}

.catalog-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-art {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bg);
}

.card-art--album {
  background: linear-gradient(145deg, #3d3428, var(--accent));
}

.card-art--artist {
  background: linear-gradient(145deg, #2a2d35, #5c6475);
}

.detail-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.detail-art--lg {
  width: 10rem;
  flex-shrink: 0;
}

.detail-copy h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0;
}

.detail-bio {
  color: var(--text-muted);
  max-width: 40rem;
}

/* Tags */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-grid--lg .genre-tag {
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

.genre-tag {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.85rem;
}

.genre-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Tracks */
.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.track-row {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.track-list--full .track-row {
  grid-template-columns: auto 1fr auto auto;
}

.track-row:last-child {
  border-bottom: none;
}

.track-num {
  width: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.track-name {
  font-weight: 500;
}

.track-artist {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.track-duration {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.play-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
}

.play-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.play-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

.btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-form {
  display: inline;
  margin: 0;
}

/* Forms */
.auth-card {
  max-width: 24rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth-card h1 {
  font-family: var(--font-display);
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.search-form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin: 1rem 0;
  cursor: pointer;
}

.validation-summary {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
}

.auth-alt {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.search-form input {
  flex: 1;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.playlist-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.playlist-card:hover {
  border-color: var(--accent);
}

.playlist-card h3 {
  margin: 0 0 0.35rem;
}

.playlist-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.empty-state {
  color: var(--text-muted);
  padding: 2rem 0;
}

/* Player bar — Qobuz-style three zones */
.player-video {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--player-h) + 0.75rem);
  width: min(320px, 42vw);
  max-height: 180px;
  z-index: 210;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.track-detail-video {
  width: 100%;
  max-width: 720px;
  margin: 1rem 0;
  border-radius: 8px;
  background: #000;
}

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(28, 29, 31, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  height: var(--player-h);
}

.player-bar__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 1rem;
}

.player-zone--now {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.player-cover {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.player-track-meta {
  min-width: 0;
  flex: 1;
}

.player-artist {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-favorite {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}

.player-favorite[aria-pressed="true"] {
  color: var(--accent);
}

.player-zone--transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.player-timeline {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.player-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.25rem;
}

.player-range {
  flex: 1;
  accent-color: var(--accent);
  height: 4px;
  cursor: pointer;
}

.player-range--volume {
  width: 5.5rem;
  flex: 0 0 auto;
}

.player-zone--extras {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.player-volume-wrap {
  display: flex;
  align-items: center;
}

.player-queue-hint {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-hi {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--accent);
  border-radius: 4px;
}

#player-audio {
  display: none;
}

.player-play-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
}

.player-play-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.player-nav {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.track-download {
  margin-left: 0.5rem;
  opacity: 0.75;
  text-decoration: none;
}

.track-rating {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.rating-star {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
}

.rating-star.is-active {
  color: #f5c842;
}

.rating-avg {
  margin-left: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.player-meta {
  flex: 1;
  min-width: 0;
}

.player-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.player-title {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-art--img {
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.inline-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-select {
  min-width: min(100%, 22rem);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.track-lyrics {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.track-lyrics summary {
  cursor: pointer;
  color: var(--accent);
}

.lyrics-text {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }
}

.track-lyrics {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.track-lyrics summary {
  cursor: pointer;
  color: var(--text-muted);
}

.lyrics-text {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Banner ads */
.banner-strip {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0.35rem 0.5rem;
}

.banner-strip__link {
  display: inline-block;
}

.banner-strip__img {
  max-height: 72px;
  width: auto;
  max-width: min(100%, 56rem);
  object-fit: contain;
  vertical-align: middle;
}

.ad-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  align-self: center;
}

.track-row--ad {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.between-tracks-ad {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.between-tracks-ad img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.chart-row--native-ad .chart-native-ad {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.preroll-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 8, 12, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.preroll-overlay__img {
  max-width: min(90vw, 420px);
  max-height: 40vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.preroll-overlay__label {
  color: var(--muted);
  margin: 0;
}

.preroll-overlay__link {
  color: var(--accent);
  font-weight: 600;
}

/* Stories */
.story-row {
  max-width: var(--max-w);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}

.story-row__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.story-row__list {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.story-circle {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  width: 4.5rem;
}

.story-circle img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.story-circle__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-modal[hidden] {
  display: none;
}

.story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.story-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  max-width: min(92vw, 26rem);
  text-align: center;
}

.story-modal__close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.story-modal__img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.story-modal__title {
  margin: 0.75rem 0 0.5rem;
  font-weight: 600;
}

.track-thumb {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-art--img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

.track-detail-hero .track-meta-line {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.track-detail-actions {
  margin-top: 1rem;
}

.track-source {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-size {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.comment-form {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.comment-form .form-field {
  display: grid;
  gap: 0.35rem;
}

.comment-form input,
.comment-form textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.comment-form__hint,
.comment-form__status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.comment-item {
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comment-item__author {
  margin: 0;
  font-weight: 600;
}

.comment-item__body {
  margin: 0.35rem 0 0.5rem;
}

.comment-item__time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-dot {
  margin: 0 0.35rem;
  color: var(--text-muted);
}

.chart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.chart-list--compact {
  max-width: 36rem;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart-rank {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  min-width: 2rem;
  text-align: center;
}

.chart-meta {
  flex: 1;
  min-width: 0;
}

.chart-title {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.chart-artist,
.chart-plays {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.year-filter-form,
.compare-form,
.search-advanced__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.year-filter-form label,
.compare-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.year-filter-form input,
.year-filter-form select,
.compare-form input,
.search-advanced input,
.search-advanced select {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.calendar-days {
  display: grid;
  gap: 1.5rem;
}

.calendar-day__date {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.compare-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.compare-col {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-stats {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
}

.verified-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
}

.follow-btn--active {
  border-color: var(--accent);
  color: var(--accent);
}

.artist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.nav-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.35rem;
  color: var(--text-muted);
}

.nav-notifications__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.notification-item--unread {
  border-color: var(--accent);
}

.search-form--advanced {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-form__simple {
  display: flex;
  gap: 0.5rem;
  border: none;
  margin: 0;
  padding: 0;
}

.search-advanced {
  padding: 0.75rem 0;
  color: var(--text-muted);
}

.search-advanced__grid {
  margin-top: 0.75rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.card-art--sm {
  width: 3rem;
  height: 3rem;
}

.catalog-card--inline {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex: 1;
  background: transparent;
  border: none;
  padding: 0;
}

/* —— Discover chrome —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-inner--discover {
  max-width: var(--max-w);
  gap: 0.75rem;
}

.icon-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 1 auto;
}

.icon-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 600;
  min-width: 3.25rem;
  transition: color 0.15s, background 0.15s;
}

.icon-nav__link:hover,
.icon-nav__link.is-active {
  color: var(--text);
  background: rgba(229, 160, 32, 0.08);
}

.icon-nav__svg {
  width: 1.15rem;
  height: 1.15rem;
}

.header-search {
  flex: 1;
  max-width: 14rem;
  margin-left: auto;
}

.header-search input {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.header-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(145deg, #3d3428, var(--accent));
  color: var(--bg);
}

.header-more {
  position: relative;
}

.header-more__trigger {
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.header-more__trigger::-webkit-details-marker {
  display: none;
}

.header-more__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 9rem;
  padding: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0.15rem;
  z-index: 120;
}

.header-more__menu a {
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.header-more__menu a:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.site-main--discover {
  padding-top: 1.25rem;
}

.site-footer--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: calc(var(--player-h) + 0.5rem);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.discover-head {
  margin-bottom: 1.5rem;
}

.discover-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.discover-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.discover-filter-link {
  font-size: 0.9rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem 1rem;
}

@media (max-width: 1100px) {
  .album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Homepage treatment inspired by Persian music download catalogs. */
body.home-discovery-body {
  background: radial-gradient(circle at 85% -10%, #3b1f54 0, transparent 34rem), radial-gradient(circle at 10% 20%, #123b4c 0, transparent 30rem), #090b12;
}
body.home-discovery-body .site-main--discover {
  max-width: 1500px;
  margin-inline: auto;
}
body.home-discovery-body .home-hero {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  box-shadow: 0 24px 80px #0006;
  background: linear-gradient(135deg, #171b2b 0%, #111827 48%, #24152d 100%);
}
body.home-discovery-body .home-track-card,
body.home-discovery-body .home-panel,
body.home-discovery-body .home-side-panel {
  border-color: color-mix(in srgb, #fff 12%, transparent);
  box-shadow: 0 14px 40px #0003;
}
body.home-discovery-body .home-track-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
}
  --bg: #f1f1f1;
  --bg-elevated: #fff;
  --bg-card: #fff;
  --text: #292929;
  --text-muted: #777;
  --accent: #8d1763;
  --accent-hover: #a52275;
  --border: #dedede;
  background: #f1f1f1;
}
body.home-discovery-body .site-header {
  background: #292929;
  box-shadow: none;
  color: #f8f8f8;
}
body.home-discovery-body .brand,
body.home-discovery-body .icon-nav__link,
body.home-discovery-body .header-actions .btn { color: #f8f8f8; }
body.home-discovery-body .icon-nav__link:hover,
body.home-discovery-body .icon-nav__link.is-active {
  color: #fff;
  background: #8d1763;
}
body.home-discovery-body .header-search input {
  border-color: #444;
  background: #373737;
  color: #fff;
}
body.home-discovery-body .guest-banner {
  border-color: #3c3c3c;
  background: #202020;
  color: #eee;
}
body.home-discovery-body .site-main--discover {
  max-width: 76rem;
  padding-top: 1rem;
}
body.home-discovery-body .home-discovery {
  grid-template-columns: minmax(0, 2fr) minmax(15rem, .9fr);
  gap: .8rem;
  max-width: none;
}
body.home-discovery-body .home-hero,
body.home-discovery-body .home-panel,
body.home-discovery-body .home-side-panel {
  border: 1px solid #d6d6d6;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 3px #0000000d;
}
body.home-discovery-body .home-hero {
  grid-template-columns: 1fr auto;
  gap: .8rem;
  padding: 1rem 1.2rem;
}
body.home-discovery-body .home-hero h1 {
  font-family: var(--font-body);
  font-size: 1.35rem;
}
body.home-discovery-body .home-category-nav a { border-radius: 3px; }
body.home-discovery-body .home-panel,
body.home-discovery-body .home-side-panel { padding: .85rem; }
body.home-discovery-body .home-section-head {
  border-bottom: 1px solid #ddd;
  padding-bottom: .65rem;
}
body.home-discovery-body .home-section-kicker { display: none; }
body.home-discovery-body .home-section-head h2,
body.home-discovery-body .home-side-head h2 { font-size: 1.05rem; }
body.home-discovery-body .home-track-card {
  flex-basis: 10.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #fafafa;
}
body.home-discovery-body .home-track-card__cover img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
body.home-discovery-body .home-track-card__title {
  padding: .6rem .6rem .15rem;
  font-size: .84rem;
}
body.home-discovery-body .home-track-card__artist { padding: 0 .6rem .6rem; }
body.home-discovery-body .home-playlist-card { border-radius: 3px; }
body.home-discovery-body .home-latest-list li + li { border-top: 1px solid #eee; }
body.home-discovery-body .player-bar {
  background: rgba(35, 35, 35, .97);
  color: #f8f8f8;
  box-shadow: 0 -5px 24px rgba(0, 0, 0, .18);
}
@media (max-width: 760px) {
  body.home-discovery-body .home-discovery { grid-template-columns: minmax(0, 1fr); }
  body.home-discovery-body .home-discovery__side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.home-discovery-body .home-hero { grid-template-columns: minmax(0, 1fr); }
  body.home-discovery-body .home-search { grid-column: 1; grid-row: auto; }
}

@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.album-tile {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.album-tile__cover-wrap {
  position: relative;
  margin-bottom: 0.55rem;
}

.album-tile__cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-tile__cover--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(145deg, #3d3428, var(--accent));
  color: var(--bg);
}

.album-tile:hover .album-tile__cover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.album-tile__badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
}

.album-tile__title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-tile__artist {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.track-tile {
  flex: 0 0 auto;
  width: 9.5rem;
}

.track-tile__cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 0.5rem;
}

.track-tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-tile__letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  background: var(--bg-elevated);
  color: var(--accent);
}

.play-btn--overlay {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.track-tile__cover:hover .play-btn--overlay {
  opacity: 1;
}

.track-tile__title {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.track-tile__artist {
  font-size: 0.78rem;
}

.track-list--strip {
  border: none;
  background: transparent;
}

.track-row--strip {
  grid-template-columns: auto auto 1fr auto;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.track-strip-thumb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 4px;
  object-fit: cover;
}

.chart-thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  object-fit: cover;
}

.page-head--compact h1 {
  margin-bottom: 0.25rem;
}

/* Auth — multi-method */
.auth-shell {
  max-width: 28rem;
  margin: 0 auto;
}

.auth-card--wide {
  max-width: 100%;
}

.auth-lead {
  margin: -0.75rem 0 1.25rem;
  font-size: 0.9rem;
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 0.45rem 0.5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--bg-elevated);
  color: var(--text);
}

.auth-panel[hidden] {
  display: none;
}

.channel-toggle {
  display: flex;
  gap: 0.5rem;
}

.channel-toggle__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.channel-toggle__item:has(input:checked) {
  border-color: var(--accent);
  background: rgba(229, 160, 32, 0.08);
}

.auth-divider {
  margin: 1.25rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider span {
  padding: 0 0.5rem;
}

.btn-google {
  font-weight: 600;
}

@media (max-width: 900px) {
  .icon-nav__label {
    display: none;
  }

  .icon-nav__link {
    min-width: auto;
    padding: 0.35rem;
  }

  .header-search {
    max-width: 8rem;
  }

  .player-bar__grid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
  }

  .player-zone--extras {
    display: none;
  }

  .player-zone--transport {
    order: -1;
  }
}

@media (max-width: 640px) {
  .header-inner--discover {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .icon-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .header-search {
    order: 2;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.plan-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.plan-card--featured {
  border-color: rgba(167, 139, 250, 0.45);
}

.guest-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  background: rgba(167, 139, 250, 0.12);
  border-bottom: 1px solid rgba(167, 139, 250, 0.25);
  font-size: 0.9rem;
}

.guest-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-modal[hidden] {
  display: none;
}

.guest-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.guest-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: #15151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-bio {
  max-width: 40rem;
  line-height: 1.5;
}

.artist-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0.75rem;
}

.artist-tour-text,
.artist-post {
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

.synced-lyrics {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 16rem;
  overflow-y: auto;
}

.synced-lyrics__line {
  padding: 0.35rem 0.5rem;
  border-radius: 0.25rem;
  color: var(--muted, #9a9aad);
  transition: color 0.15s, background 0.15s;
}

.synced-lyrics__line.is-active {
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.work-type-badge--inline {
  font-size: 0.7rem;
  margin-left: 0.35rem;
}

.album-type-filters {
  margin-top: 0.5rem;
}

/* —— Track detail discovery layout (async rails) —— */
.track-page {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr) minmax(11rem, 15rem);
  gap: 1.25rem 1.5rem;
  align-items: start;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.track-page__main {
  min-width: 0;
}

.track-page__left,
.track-page__right {
  position: sticky;
  top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-rail {
  background: var(--bg-elevated, #1c1d1f);
  border: 1px solid var(--border, #2e3034);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}

.track-rail__title {
  font-family: var(--font-display, Syne, sans-serif);
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.track-rail__title a {
  color: inherit;
  text-decoration: none;
}

.track-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.track-rail__list--numbered {
  list-style: none;
}

.track-rail__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.track-rail__link:hover .track-rail__name {
  color: var(--accent, #e5a020);
}

.track-rail__thumb {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-card, #232427);
}

.track-rail__thumb--round {
  border-radius: 50%;
}

.track-rail__thumb--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent, #e5a020);
}

.track-rail__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-rail__name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-rail__sub {
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-rail__rank {
  width: 1.25rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted, #9b958c);
}

.track-rail__more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
}

.track-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.track-quick-links a {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border, #2e3034);
  text-decoration: none;
  color: var(--text-muted, #9b958c);
}

.track-quick-links a:hover {
  color: var(--accent, #e5a020);
  border-color: var(--accent, #e5a020);
}

.track-artist-card {
  background: var(--bg-elevated, #1c1d1f);
  border: 1px solid var(--border, #2e3034);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}

.track-artist-card__link {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: inherit;
}

.async-skeleton {
  padding: 0.75rem;
}

.async-skeleton__title,
.async-skeleton__line {
  background: linear-gradient(90deg, #2a2b2e 25%, #34353a 50%, #2a2b2e 75%);
  background-size: 200% 100%;
  animation: async-shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
}

.async-skeleton__title {
  height: 0.9rem;
  width: 55%;
  margin-bottom: 0.75rem;
}

.async-skeleton__line {
  height: 0.65rem;
  width: 100%;
  margin-bottom: 0.45rem;
}

@keyframes async-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.track-page__stories {
  margin-bottom: 1rem;
}

.ad-slot {
  position: relative;
  display: block;
  margin: 0.75rem 0;
  padding: 0.65rem;
  border: 1px dashed var(--border, #2e3034);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-elevated, #1c1d1f) 88%, transparent);
  overflow: hidden;
  min-height: 2.5rem;
}

.ad-slot__label {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #9a9aa3);
  z-index: 1;
}

.ad-slot__banner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}

.ad-slot__banner img {
  width: 100%;
  height: auto;
  max-height: 12rem;
  object-fit: cover;
  border-radius: 8px;
}

.ad-slot__title {
  font-size: 0.85rem;
}

.ad-slot__external {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot__external iframe,
.ad-slot__external img {
  max-width: 100%;
}

.ad-slot--trackpageleftrail,
.ad-slot--trackpagerightrail {
  margin-top: 0;
}

.ad-slot--trackpageleftrail .ad-slot__banner img,
.ad-slot--trackpagerightrail .ad-slot__banner img {
  max-height: 8rem;
}

.site-ad-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 960px) {
  .track-page {
    grid-template-columns: 1fr;
  }

  .track-page__left,
  .track-page__right {
    position: static;
  }

  .track-page__left {
    order: 2;
  }

  .track-page__main {
    order: 1;
  }

  .track-page__right {
    order: 3;
  }
}

/* Comfortable touch targets and keyboard focus on every screen size. */
.btn,
.icon-nav__link,
.header-more__trigger,
.player-play-toggle,
.player-nav,
.player-favorite {
  min-height: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-play-toggle,
.player-nav {
  min-width: 44px;
}

input:not([type="range"]),
select,
textarea {
  min-height: 44px;
}

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .site-main {
    padding: 1.25rem 0.875rem 2rem;
  }

  .page-head h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.4;
  }

  .section-head {
    gap: 0.75rem;
  }
}

/* Search focused song landing, inspired by the supplied Persian music page. */
body.track-landing-body {
  --bg: #f7f5f5;
  --bg-elevated: #fff;
  --bg-card: #fff;
  --text: #282126;
  --text-muted: #756b70;
  --accent: #8f1d39;
  --accent-hover: #ad3150;
  --border: #eadfe2;
  background: var(--bg);
}

body.track-landing-body .site-header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 16px rgba(75, 25, 39, 0.06);
}

body.track-landing-body .track-page {
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem);
  max-width: 82rem;
  gap: 1rem 1.25rem;
}

body.track-landing-body .track-page__main {
  grid-column: 1;
  grid-row: 1 / span 2;
}

body.track-landing-body .track-page__left,
body.track-landing-body .track-page__right {
  grid-column: 2;
  position: static;
}

body.track-landing-body .track-page__left {
  grid-row: 1;
}

body.track-landing-body .track-page__right {
  grid-row: 2;
}

body.track-landing-body .track-page__left > .ad-slot,
body.track-landing-body .track-page__right > .ad-slot {
  display: none;
}

.track-latest-strip-slot {
  margin: 0 0 1rem;
  min-height: 7rem;
}

.track-latest-strip {
  overflow: hidden;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
}

.track-latest-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.track-latest-strip__header h2 {
  margin: 0;
  font-size: 1rem;
}

.track-latest-strip__header a {
  font-size: 0.8rem;
  white-space: nowrap;
}

.track-latest-strip__items {
  display: grid;
  grid-auto-columns: minmax(9rem, 1fr);
  grid-auto-flow: column;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.55rem;
  scrollbar-color: #c9a9b1 transparent;
  scrollbar-width: thin;
}

.track-latest-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text);
}

.track-latest-card img,
.track-latest-card__placeholder {
  display: flex;
  width: 100%;
  height: 7.25rem;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  background: #f2e8eb;
  color: var(--accent);
  font-size: 2rem;
}

.track-latest-card__title {
  display: -webkit-box;
  min-height: 3.1rem;
  overflow: hidden;
  padding: 0.55rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.track-landing-body .track-detail-hero,
body.track-landing-body .track-rail,
body.track-landing-body .track-artist-card,
body.track-landing-body .track-page__main > .section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  box-shadow: 0 5px 20px rgba(75, 25, 39, 0.045);
}

body.track-landing-body .track-detail-hero {
  padding: 1rem;
}

body.track-landing-body .track-detail-hero h1 {
  margin-top: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

body.track-landing-body .track-open-player {
  border-color: #d8b9c1;
  background: #f8eef1;
}

body.track-landing-body .track-rail {
  padding: 0.9rem;
}

body.track-landing-body .track-rail__title {
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #f2e5e8;
}

@media (max-width: 960px) {
  body.track-landing-body .track-page {
    grid-template-columns: minmax(0, 1fr);
  }

  body.track-landing-body .track-page__main,
  body.track-landing-body .track-page__left,
  body.track-landing-body .track-page__right {
    grid-column: 1;
    grid-row: auto;
  }

  body.track-landing-body .track-page__main {
    order: 1;
  }

  body.track-landing-body .track-page__left {
    order: 2;
  }

  body.track-landing-body .track-page__right {
    order: 3;
  }
}

/* Home discovery layout: Persian catalog landing with editorial rails and player links. */
body.home-discovery-body {
  --bg: #f7f5f5;
  --bg-elevated: #fff;
  --bg-card: #fff;
  --text: #282126;
  --text-muted: #756b70;
  --accent: #92213e;
  --accent-hover: #ad3150;
  --border: #eadfe2;
  background: var(--bg);
}

body.home-discovery-body .guest-banner {
  color: #6f2438;
  background: #f8e9ed;
  border-color: #ead1d8;
}

body.home-discovery-body .site-header {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 16px rgba(75, 25, 39, 0.06);
}

body.home-discovery-body .icon-nav__link:hover,
body.home-discovery-body .icon-nav__link.is-active {
  color: var(--accent);
  background: #f8eef1;
}

body.home-discovery-body .header-search input {
  background: #fff;
}

.home-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
  gap: 1rem;
  align-items: start;
  max-width: 82rem;
  margin: 0 auto;
}

.home-discovery__main,
.home-discovery__side {
  min-width: 0;
}

.home-discovery__side {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.8fr);
  gap: 1rem 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid #ead9de;
  border-radius: 20px;
  background: radial-gradient(ellipse at 95% 5%, #f5e4e9 0, transparent 48%), #fff;
  box-shadow: 0 8px 28px rgba(75, 25, 39, 0.06);
}

.home-hero__copy {
  grid-column: 1;
}

.home-hero__eyebrow,
.home-section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
}

.home-hero h1 {
  margin: 0.3rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.35;
}

.home-hero p {
  margin: 0;
  color: var(--text-muted);
}

.home-search {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.home-search input {
  min-width: 0;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.home-search .btn {
  flex: 0 0 auto;
  border-radius: 999px;
}

.home-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.home-category-nav a {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #5f4a51;
  font-size: 0.78rem;
  font-weight: 650;
}

.home-category-nav a:hover {
  border-color: #d7aeba;
  color: var(--accent);
}

.home-player-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  min-height: 3rem;
  margin-top: 0.15rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #ead1d8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.home-player-cta > span:first-child {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
}

.home-player-cta strong,
.home-player-cta small {
  display: block;
}

.home-player-cta small {
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.home-panel,
.home-side-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(75, 25, 39, 0.035);
}

.home-section-head,
.home-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.home-section-head h2,
.home-side-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.home-section-link,
.home-side-head > a {
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.home-horizontal {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.55rem;
  scrollbar-color: #c9a9b1 transparent;
  scrollbar-width: thin;
}

.home-playlist-card {
  flex: 0 0 12rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
}

.home-playlist-card > img,
.home-playlist-card__cover {
  display: grid;
  width: 100%;
  height: 8rem;
  place-items: center;
  object-fit: cover;
  background: linear-gradient(135deg, #f2dce2, #9b4960);
  color: #fff;
  font-size: 2.5rem;
}

.home-playlist-card__title,
.home-playlist-card__meta {
  display: block;
  padding: 0 0.65rem;
}

.home-playlist-card__title {
  padding-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-playlist-card__meta {
  padding-top: 0.2rem;
  padding-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.home-track-row {
  gap: 0.8rem;
}

.home-track-card {
  flex: 0 0 11.5rem;
  min-width: 0;
}

.home-track-card__cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.35;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  background: #f0e5e8;
}

.home-track-card__cover > a:first-child,
.home-track-card__cover img,
.home-track-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
  color: var(--accent);
  font-size: 2rem;
}

.home-track-card__play {
  position: absolute;
  inset-inline-start: 0.5rem;
  bottom: 0.5rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(90, 20, 42, 0.24);
}

.home-track-card__title,
.home-track-card__artist {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-track-card__title {
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 700;
}

.home-track-card__artist {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.home-empty-note {
  margin: 0;
  padding: 1rem;
  border-radius: 10px;
  background: #fbf8f9;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.home-latest-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-latest-list li > a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--text);
}

.home-latest-list img,
.home-latest-list__placeholder {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border-radius: 9px;
  background: #f2e8eb;
  object-fit: cover;
  color: var(--accent);
}

.home-latest-list li > a > span:last-child {
  min-width: 0;
}

.home-latest-list strong,
.home-latest-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-latest-list strong {
  font-size: 0.8rem;
}

.home-latest-list small {
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.home-genre-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.home-genre-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: #5f4a51;
  font-size: 0.76rem;
}

.home-genre-list a span {
  color: #b48793;
}

.home-artist-row {
  gap: 1.1rem;
}

.home-artist-card {
  display: grid;
  flex: 0 0 6rem;
  justify-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-align: center;
  font-size: 0.78rem;
}

.home-artist-card img,
.home-artist-card__placeholder {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 50%;
  background: #f2e2e7;
  object-fit: cover;
  color: var(--accent);
  font-size: 1.8rem;
}

.home-side-editorial {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid #e8d1d7;
  border-radius: 14px;
  background: #f8edf0;
  color: var(--text);
}

.home-side-editorial > span:first-child {
  color: var(--accent);
  font-size: 1.5rem;
}

.home-side-editorial > span:nth-child(2) {
  flex: 1;
}

.home-side-editorial strong,
.home-side-editorial small {
  display: block;
}

.home-side-editorial strong {
  font-size: 0.82rem;
}

.home-side-editorial small {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

body.home-discovery-body .player-bar {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -5px 24px rgba(75, 25, 39, 0.12);
}

@media (max-width: 900px) {
  .home-discovery {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem);
  }
}

@media (max-width: 720px) {
  .home-discovery {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-discovery__main {
    order: 1;
  }

  .home-discovery__side {
    position: static;
    order: 2;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero__copy,
  .home-search,
  .home-player-cta {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Persian download catalog homepage and React player entry point. */
body.home-discovery-body {
  --bg: #f2f2f2;
  --bg-elevated: #fff;
  --bg-card: #fff;
  --text: #292929;
  --text-muted: #777;
  --accent: #8d1763;
  --accent-hover: #a52275;
  --border: #ddd;
  background: #f2f2f2;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  padding-bottom: 1rem;
}
body.home-discovery-body .site-header {
  background: #292929;
  color: #fff;
  box-shadow: none;
  border-bottom: 3px solid #8d1763;
}
body.home-discovery-body .header-inner--discover {
  min-height: 4.4rem;
  height: auto;
  gap: 1.2rem;
}
body.home-discovery-body .brand,
body.home-discovery-body .header-actions .btn { color: #fff; }
body.home-discovery-body .brand span { color: #e875b7; }
body.home-discovery-body .icon-nav { display: none; }
.download-header-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
}
.download-header-nav a {
  color: #f4f4f4;
  font-size: .86rem;
  font-weight: 650;
  white-space: nowrap;
}
.download-header-nav a:hover { color: #f09ccc; }
body.home-discovery-body .header-search {
  flex: 0 1 13rem;
}
body.home-discovery-body .header-search input {
  width: 100%;
  border: 1px solid #494949;
  border-radius: 4px;
  background: #383838;
  color: #fff;
}
body.home-discovery-body .header-search input::placeholder { color: #c7c7c7; }
body.home-discovery-body .guest-banner {
  color: #eee;
  background: #202020;
  border-color: #383838;
}
body.home-discovery-body .site-main--discover {
  max-width: 76rem;
  padding: 1rem 1.1rem calc(var(--player-h) + 1rem);
}
.download-home { color: #292929; }
.download-featured {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin: 0 0 1rem;
  background: #242424;
  scrollbar-width: thin;
}
.download-featured__item {
  position: relative;
  display: block;
  flex: 0 0 12.5%;
  min-width: 8.5rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: #fff;
}
.download-featured__item img,
.download-featured__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  object-fit: cover;
  place-items: center;
  background: linear-gradient(140deg, #8d1763, #30222c);
  color: #fff;
  font-size: 2rem;
}
.download-featured__item::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #000c);
  content: "";
}
.download-featured__tag {
  position: absolute;
  z-index: 1;
  top: .45rem;
  right: .45rem;
  padding: .12rem .5rem;
  border-radius: 99px;
  background: #151515c9;
  color: white;
  font-size: .68rem;
}
.download-featured__caption {
  position: absolute;
  z-index: 1;
  right: .6rem;
  bottom: .5rem;
  left: .6rem;
  display: grid;
  gap: .1rem;
  color: white;
  font-size: .78rem;
  line-height: 1.5;
}
.download-featured__caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.download-home__columns {
  display: grid;
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr) minmax(13rem, 16rem);
  align-items: start;
  gap: .85rem;
  direction: rtl;
}
.download-feed,
.download-sidebar { min-width: 0; }
.download-feed__intro,
.download-post,
.download-widget,
.download-empty {
  margin-bottom: .85rem;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-shadow: 0 1px 3px #0000000a;
}
.download-feed__intro { padding: 1rem 1.1rem; }
.download-feed__intro h1 {
  margin: 0 0 .45rem;
  color: #7f195c;
  font-size: 1.3rem;
}
.download-feed__intro > p { margin: 0; color: #626262; font-size: .88rem; }
.download-player-button {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: fit-content;
  max-width: 100%;
  margin-top: .9rem;
  padding: .65rem .85rem;
  border-radius: 5px;
  background: #8d1763;
  color: #fff;
}
.download-player-button:hover { background: #a52275; color: #fff; }
.download-player-button > span:first-child { font-size: 1.15rem; }
.download-player-button > span:nth-child(2) { display: grid; line-height: 1.5; }
.download-player-button small { color: #f5dcea; font-size: .7rem; }
.download-player-button > span:last-child { margin-right: .35rem; }
.download-feed__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .65rem;
  padding: .65rem .85rem;
  border: 1px solid #d8d8d8;
  background: #e7e7e7;
}
.download-feed__heading h2 { margin: 0; font-size: 1rem; }
.download-feed__heading a { color: #8d1763; font-size: .78rem; white-space: nowrap; }
.download-post { padding: .9rem; }
.download-post__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem .75rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid #e7e7e7;
}
.download-post__header h3 { margin: 0; font-size: .98rem; }
.download-post__header h3 a { color: #8d1763; }
.download-post__header > div { display: flex; gap: .6rem; color: #858585; font-size: .72rem; }
.download-post__title { margin: .65rem 0 .3rem; font-size: .88rem; }
.download-post__description { margin: 0; color: #626262; font-size: .83rem; line-height: 1.9; }
.download-post__cover {
  display: block;
  width: min(100%, 19rem);
  margin: .8rem auto;
}
.download-post__cover img { display: block; width: 100%; height: auto; object-fit: cover; }
.download-post__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.download-post__actions .btn { border-radius: 4px; font-size: .82rem; }
.download-widget { padding: .85rem; }
.download-widget h2 {
  margin: -.85rem -.85rem .7rem;
  padding: .65rem .85rem;
  background: #303030;
  color: #fff;
  font-size: .96rem;
}
.download-widget p { margin: 0; color: #777; font-size: .8rem; }
.download-widget ul,
.download-widget ol { margin: 0; padding: 0; list-style: none; }
.download-widget--singers ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .6rem; }
.download-widget li a { color: #555; font-size: .78rem; }
.download-widget li a:hover { color: #8d1763; }
.download-widget__stack { display: grid; gap: .55rem; }
.download-latest-list { display: grid; gap: .45rem; }
.download-latest-list li + li { padding-top: .45rem; border-top: 1px solid #eee; }
.download-latest-list li a { display: flex; align-items: center; gap: .55rem; }
.download-latest-list img { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; object-fit: cover; }
.download-latest-list li span { display: grid; min-width: 0; }
.download-latest-list strong,
.download-latest-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-latest-list strong { color: #444; font-size: .75rem; }
.download-latest-list small { color: #888; font-size: .68rem; }
.download-empty { padding: 1.2rem; text-align: center; }
.download-empty h3 { margin: 0 0 .35rem; font-size: 1rem; }
.download-empty p { margin: 0; color: #777; font-size: .82rem; }
body.home-discovery-body .player-bar {
  display: none;
}
@media (max-width: 1000px) {
  .download-home__columns { grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); }
  .download-sidebar--right { display: none; }
}
@media (max-width: 700px) {
  body.home-discovery-body .header-inner--discover { flex-wrap: wrap; padding: .65rem .9rem; }
  .download-header-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; gap: .2rem .9rem; }
  body.home-discovery-body .header-search { flex: 1 1 8rem; }
  body.home-discovery-body .header-actions { margin-right: auto; }
  body.home-discovery-body .site-main--discover { padding: .7rem .65rem calc(var(--player-h) + .8rem); }
  .download-featured__item { flex-basis: 36vw; min-width: 7.5rem; }
  .download-home__columns { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .download-feed { order: 1; }
  .download-sidebar--left { order: 2; }
  .download-sidebar--right { display: block; order: 3; }
  .download-sidebar--right .download-widget--singers { display: none; }
  .download-post { padding: .75rem; }
  .download-post__cover { width: min(100%, 16rem); }
}

/* Shared download catalog shell for every ASP page. */
body.download-catalog-body {
  --bg: #f2f2f2;
  --bg-elevated: #fff;
  --bg-card: #fff;
  --text: #292929;
  --text-muted: #737373;
  --accent: #8d1763;
  --accent-hover: #a52275;
  --border: #ddd;
  --radius: 4px;
  color: #292929;
  background: #f2f2f2;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  padding-bottom: 1rem;
}
body.download-catalog-body .site-header {
  background: #292929;
  border-bottom: 3px solid #8d1763;
  box-shadow: none;
  color: #fff;
}
body.download-catalog-body .header-inner--discover {
  min-height: 4.4rem;
  height: auto;
  gap: 1.1rem;
}
body.download-catalog-body .brand,
body.download-catalog-body .header-actions .btn { color: #fff; }
body.download-catalog-body .brand span { color: #e875b7; }
body.download-catalog-body .icon-nav { display: none; }
body.download-catalog-body .download-header-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
}
body.download-catalog-body .download-header-nav a {
  color: #f4f4f4;
  font-size: .84rem;
  font-weight: 650;
  white-space: nowrap;
}
body.download-catalog-body .download-header-nav a:hover { color: #f09ccc; }
body.download-catalog-body .header-search { flex: 0 1 12rem; }
body.download-catalog-body .header-search input {
  width: 100%;
  border: 1px solid #494949;
  border-radius: 4px;
  background: #383838;
  color: #fff;
}
body.download-catalog-body .header-search input::placeholder { color: #c7c7c7; }
.download-player-nav {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .42rem .65rem;
  border-radius: 4px;
  background: #8d1763;
  color: #fff;
  font-size: .77rem;
  font-weight: 700;
  white-space: nowrap;
}
.download-player-nav:hover { background: #a52275; color: #fff; }
body.download-catalog-body .guest-banner {
  border-color: #383838;
  background: #202020;
  color: #eee;
}
body.download-catalog-body .site-main--discover {
  max-width: 76rem;
  padding: 1rem 1.1rem 2rem;
}
body.download-catalog-body .site-ad-footer { max-width: 76rem; margin-inline: auto; }
body.download-catalog-body .site-footer {
  max-width: 76rem;
  border-top: 1px solid #d8d8d8;
  color: #737373;
}
body.download-catalog-body .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
}
body.download-catalog-body .page-head {
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border: 1px solid #d8d8d8;
  background: #e7e7e7;
}
body.download-catalog-body .page-head h1,
body.download-catalog-body .detail-copy h1 {
  color: #7f195c;
  font-size: 1.35rem;
  font-weight: 750;
}
body.download-catalog-body .page-head p { margin: .25rem 0 0; color: #686868; font-size: .84rem; }
body.download-catalog-body .section,
body.download-catalog-body .detail-hero,
body.download-catalog-body .track-panel,
body.download-catalog-body .auth-card,
body.download-catalog-body .auth-section,
body.download-catalog-body .subscription-page,
body.download-catalog-body .calendar-day,
body.download-catalog-body .download-list,
body.download-catalog-body .track-artist-card {
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px #0000000a;
}
body.download-catalog-body .section { margin-bottom: 1rem; padding: 1rem; }
body.download-catalog-body .section h2 { color: #343434; font-size: 1.08rem; }
body.download-catalog-body .section-head { margin-bottom: .7rem; padding-bottom: .6rem; border-bottom: 1px solid #e4e4e4; }
body.download-catalog-body .catalog-card,
body.download-catalog-body .chart-row,
body.download-catalog-body .track-list,
body.download-catalog-body .track-row,
body.download-catalog-body .album-tile,
body.download-catalog-body .genre-tag,
body.download-catalog-body .playlist-card,
body.download-catalog-body .calendar-day {
  border-color: #dedede;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
}
body.download-catalog-body .track-list { margin-bottom: 1rem; }
body.download-catalog-body .track-row { border-bottom-color: #e8e8e8; }
body.download-catalog-body .track-row:hover,
body.download-catalog-body .chart-row:hover { background-color: #f8f5f7; }
body.download-catalog-body .track-name,
body.download-catalog-body .chart-title { color: #333; }
body.download-catalog-body .track-artist,
body.download-catalog-body .chart-artist { color: #777; }
body.download-catalog-body .detail-hero { margin-bottom: 1rem; padding: 1rem; }
body.download-catalog-body .track-detail-hero { background: #fff; }
body.download-catalog-body .track-page__left,
body.download-catalog-body .track-page__right { min-width: 0; }
body.download-catalog-body .detail-art,
body.download-catalog-body .track-cover,
body.download-catalog-body .catalog-card img { border-radius: 3px; }
body.download-catalog-body .empty-state {
  margin: 0 0 1rem;
  padding: 1.2rem;
  border: 1px solid #ddd;
  background: #fff;
  color: #777;
  text-align: center;
}
body.download-catalog-body .btn { border-radius: 4px; }
body.download-catalog-body input,
body.download-catalog-body select,
body.download-catalog-body textarea {
  border-color: #d4d4d4;
  border-radius: 4px;
  background: #fff;
  color: #292929;
}
body.download-catalog-body .player-bar,
body.download-catalog-body .player-video { display: none !important; }
@media (max-width: 760px) {
  body.download-catalog-body .header-inner--discover { flex-wrap: wrap; padding: .6rem .8rem; }
  body.download-catalog-body .download-header-nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: .35rem 1rem;
  }
  body.download-catalog-body .header-search { flex: 1 1 7rem; }
  body.download-catalog-body .header-actions { margin-right: auto; }
  body.download-catalog-body .site-main--discover { padding: .7rem .65rem 1.5rem; }
  body.download-catalog-body .page-head { padding: .7rem .8rem; }
  body.download-catalog-body .page-head h1,
  body.download-catalog-body .detail-copy h1 { font-size: 1.2rem; }
  body.download-catalog-body .track-row { gap: .5rem; padding: .6rem; }
  body.download-catalog-body .chart-row { gap: .5rem; padding: .55rem; }
  body.download-catalog-body .detail-hero { gap: .8rem; padding: .75rem; }
}

/* Soft, utility-first inspired finish for the ASP landing and catalog pages. */
body.download-catalog-body,
body.home-discovery-body {
  --surface-soft: #fff;
  --surface-muted: #f8f6f9;
  --line-soft: #ece7ee;
  --ink-soft: #292431;
  --ink-muted: #77717d;
  --brand-soft: #8d1763;
  --radius-soft: 1.15rem;
  --radius-control: .8rem;
}

body.download-catalog-body {
  background: #f7f5f8;
  color: var(--ink-soft);
}

body.download-catalog-body .site-header {
  border-bottom: 1px solid #48404a;
  box-shadow: 0 8px 28px #1c142014;
}

body.download-catalog-body .download-header-nav a,
body.download-catalog-body .header-actions .btn,
body.download-catalog-body .download-player-nav {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
}

body.download-catalog-body .download-header-nav a {
  padding: .45rem .7rem;
  transition: background-color .18s ease, color .18s ease;
}

body.download-catalog-body .download-header-nav a:hover {
  background: #ffffff12;
}

body.download-catalog-body .header-search input,
body.download-catalog-body input,
body.download-catalog-body select,
body.download-catalog-body textarea {
  min-height: 2.8rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  box-shadow: 0 1px 2px #21132608;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body.download-catalog-body input:focus,
body.download-catalog-body select:focus,
body.download-catalog-body textarea:focus,
body.download-catalog-body .header-search input:focus {
  border-color: #c26aa3;
  box-shadow: 0 0 0 4px #8d17631c;
  outline: 0;
}

body.download-catalog-body .page-head {
  border: 1px solid #eee5ef;
  border-radius: var(--radius-soft);
  background: linear-gradient(135deg, #fff 0%, #f7eef5 100%);
  box-shadow: 0 10px 26px #27152d0b;
}

body.download-catalog-body .section,
body.download-catalog-body .detail-hero,
body.download-catalog-body .track-panel,
body.download-catalog-body .auth-card,
body.download-catalog-body .auth-section,
body.download-catalog-body .subscription-page,
body.download-catalog-body .calendar-day,
body.download-catalog-body .download-list,
body.download-catalog-body .track-artist-card,
body.download-catalog-body .download-feed__intro,
body.download-catalog-body .download-post,
body.download-catalog-body .download-widget,
body.download-catalog-body .download-empty {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-soft);
  background: var(--surface-soft);
  box-shadow: 0 8px 24px #27152d09;
}

body.download-catalog-body .section,
body.download-catalog-body .download-widget,
body.download-catalog-body .download-post,
body.download-catalog-body .download-feed__intro {
  padding: clamp(.9rem, 2vw, 1.25rem);
}

body.download-catalog-body .section-head {
  border-bottom-color: var(--line-soft);
}

body.download-catalog-body .catalog-card,
body.download-catalog-body .chart-row,
body.download-catalog-body .album-tile,
body.download-catalog-body .genre-tag,
body.download-catalog-body .playlist-card,
body.download-catalog-body .track-row {
  border-color: var(--line-soft);
  border-radius: var(--radius-control);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.download-catalog-body .catalog-card:hover,
body.download-catalog-body .chart-row:hover,
body.download-catalog-body .album-tile:hover,
body.download-catalog-body .playlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #27152d12;
}

body.download-catalog-body .track-row:hover,
body.download-catalog-body .chart-row:hover {
  background-color: var(--surface-muted);
}

body.download-catalog-body .detail-art,
body.download-catalog-body .track-cover,
body.download-catalog-body .catalog-card img,
body.download-catalog-body .download-latest-list img {
  border-radius: .9rem;
}

body.download-catalog-body .btn,
body.download-catalog-body .download-post__actions .btn {
  min-height: 2.7rem;
  border-radius: var(--radius-control);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.home-card-ad {
  position: relative;
  display: grid;
  gap: .55rem;
  margin: 0 0 .9rem;
  padding: .85rem;
  overflow: hidden;
  border: 1px solid #eadce9;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #fff 0%, #fbf4fa 100%);
  box-shadow: 0 8px 24px #27152d0b;
}

.home-card-ad__label {
  width: fit-content;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #f4e5f0;
  color: #84205f;
  font-size: .68rem;
  font-weight: 700;
}

.home-card-ad__body {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  color: inherit;
}

.home-card-ad img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: .85rem;
}

.home-card-ad__content { display: grid; gap: .25rem; }
.home-card-ad__content strong { color: #322534; font-size: .95rem; }
.home-card-ad__content span { color: #77717d; font-size: .78rem; }
.home-card-ad__arrow { color: #8d1763; font-size: 1.2rem; }


body.download-catalog-body .btn:hover,
body.download-catalog-body .download-player-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #8d17632b;
}

body.download-catalog-body .empty-state {
  border: 1px dashed #d8cbd9;
  border-radius: var(--radius-soft);
  background: #fff;
}

body.home-discovery-body .home-hero,
body.home-discovery-body .home-panel,
body.home-discovery-body .home-side-panel,
body.home-discovery-body .home-track-card,
body.home-discovery-body .home-playlist-card {
  border-radius: var(--radius-soft);
  box-shadow: 0 8px 24px #27152d0b;
}

body.home-discovery-body .home-category-nav a,
body.home-discovery-body .home-player-cta,
body.home-discovery-body .home-track-card__cover,
body.home-discovery-body .home-playlist-card img {
  border-radius: var(--radius-control);
}

body.download-catalog-body a:focus-visible,
body.download-catalog-body button:focus-visible,
body.home-discovery-body a:focus-visible,
body.home-discovery-body button:focus-visible {
  outline: 3px solid #d38ab7;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body.download-catalog-body .download-header-nav a {
    min-height: 2.75rem;
    padding-inline: .85rem;
  }

  body.download-catalog-body .section,
  body.download-catalog-body .detail-hero,
  body.download-catalog-body .download-widget,
  body.download-catalog-body .download-post,
  body.download-catalog-body .download-feed__intro {
    border-radius: 1rem;
  }

  body.download-catalog-body .btn,
  body.download-catalog-body .download-post__actions .btn {
    min-height: 2.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.download-catalog-body *,
  body.home-discovery-body * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
