/* جهان ترانه — Music Website UI v3 (tokens: assets/css/tokens.css) */
/* Legacy aliases kept for compatibility — see tokens.css for source of truth */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  font-size: 15px;
  line-height: 1.6;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.muted { color: var(--text-muted); }

/* ── Layout shell ── */
.jt-app {
  min-height: 100dvh;
  display: flex;
  background: var(--bg);
}

.jt-sidebar {
  display: none;
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #08080c;
  border-left: 1px solid var(--line);
  padding: 20px 14px;
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  flex-direction: column;
  z-index: 40;
}

.jt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #fff;
  padding: 4px 8px;
}
.jt-brand strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.jt-brand small { display: block; font-size: 10px; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.08em; }
.jt-brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #9f7aea);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.jt-brand-mark svg { width: 22px; height: 22px; }

.jt-nav-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 12px 6px;
  opacity: 0.7;
}

.jt-side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.jt-side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-muted); font-weight: 600; font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.jt-side-nav a svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.85; }
.jt-side-nav a:hover { background: var(--bg-hover); color: var(--text); }
.jt-side-nav a.active {
  background: linear-gradient(90deg, rgba(108,60,225,.25), transparent);
  color: #fff;
  border-right: 3px solid var(--primary);
}

.jt-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.jt-side-chip {
  display: block; text-align: center; padding: 10px;
  border-radius: 10px; background: var(--bg-hover);
  color: var(--text); font-weight: 700; font-size: 13px;
}
.jt-side-chip.primary { background: var(--primary); color: #fff; }
.jt-side-link { font-size: 13px; color: var(--text-muted); padding: 6px 12px; }
.jt-side-link:hover { color: var(--text); }

.jt-user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  margin-bottom: 4px;
}
.jt-user-card strong { display: block; font-size: 13px; }
.jt-user-card small { font-size: 11px; color: var(--text-muted); }
.jt-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}

.jt-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  min-height: 100dvh;
}

/* ── Site header (desktop music nav) ── */
.jt-site-header {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  height: var(--header-h);
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}

.jt-header-start { display: flex; align-items: center; gap: 12px; }
.jt-mobile-menu {
  display: flex; background: var(--bg-card); border: 1px solid var(--line);
  color: var(--text); width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer; font-size: 18px;
}

.jt-header-nav { display: none; gap: 4px; }
.jt-header-nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.jt-header-nav a:hover { color: var(--text); background: var(--bg-hover); }
.jt-header-nav a.active { color: #fff; background: var(--bg-card); }

.jt-search-bar {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; height: 42px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.jt-search-bar:focus-within {
  border-color: rgba(108,60,225,.5);
  box-shadow: 0 0 0 3px rgba(108,60,225,.15);
}
.jt-search-bar svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.jt-search-bar input {
  flex: 1; border: 0; background: transparent;
  color: var(--text); font-size: 14px; outline: none;
}
.jt-search-bar input::placeholder { color: var(--text-muted); }

.jt-header-actions { display: flex; gap: 8px; margin-right: auto; }
.jt-header-btn {
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  background: var(--primary); color: #fff;
  transition: transform 0.15s, background 0.15s;
}
.jt-header-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.jt-header-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.jt-header-btn.ghost:hover { background: var(--bg-hover); }

.jt-page {
  flex: 1;
  padding: 24px 28px 32px;
  padding-bottom: calc(var(--player-h) + 48px);
}

/* ── Music hero ── */
.music-hero {
  position: relative;
  display: grid; gap: 24px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  min-height: 280px;
  align-items: center;
}
.music-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(108,60,225,.35), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(255,107,107,.12), transparent),
    linear-gradient(135deg, #12121a 0%, #1a1035 50%, #0b0b10 100%);
}
.music-hero-content { position: relative; z-index: 1; }
.music-hero-eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--yellow); margin: 0 0 10px;
}
.music-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.music-hero-lead {
  margin: 0 0 24px; max-width: 520px;
  color: var(--text-muted); font-size: 16px; line-height: 1.8;
}
.music-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 8px 32px var(--primary-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--primary-glow); }
.btn-hero-outline {
  display: inline-flex; align-items: center;
  padding: 14px 28px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text);
  font-weight: 700; font-size: 15px;
  background: rgba(255,255,255,.04);
}
.btn-hero-outline:hover { background: var(--bg-hover); }

.music-hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
}
.music-hero-stats b {
  display: block; font-size: 28px; font-weight: 800; color: #fff;
}
.music-hero-stats span { font-size: 12px; color: var(--text-muted); }

.music-hero-visual {
  position: relative; z-index: 1;
  display: none; justify-content: center; align-items: center;
  min-height: 200px;
}
.music-vinyl {
  width: 180px; height: 180px; border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1a2e, var(--primary), var(--accent), var(--yellow), #1a1a2e);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: spin 8s linear infinite;
}
.music-vinyl::after {
  content: ""; position: absolute; width: 50px; height: 50px;
  background: var(--bg); border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.music-eq {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; align-items: flex-end; height: 40px;
}
.music-eq span {
  width: 4px; background: var(--primary);
  border-radius: 2px;
  animation: eq 0.8s ease-in-out infinite alternate;
}
.music-eq span:nth-child(1) { height: 12px; animation-delay: 0s; }
.music-eq span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.music-eq span:nth-child(3) { height: 32px; animation-delay: 0.2s; }
.music-eq span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.music-eq span:nth-child(5) { height: 16px; animation-delay: 0.4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { to { height: 36px; opacity: 1; } }

/* ── Sections ── */
.section-block { margin-bottom: 40px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px; gap: 16px;
}
.section-eyebrow {
  margin: 0 0 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary);
}
.section-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.section-more {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  white-space: nowrap; transition: color 0.15s;
}
.section-more:hover { color: var(--primary); }

/* ── Cards carousel ── */
.carousel-row {
  display: flex; gap: 16px;
  overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}
.carousel-row::-webkit-scrollbar { height: 5px; }
.carousel-row::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 99px; }

.media-card {
  flex: 0 0 160px; scroll-snap-align: start;
  transition: transform 0.2s;
}
.media-card:hover { transform: translateY(-4px); }

.media-card-cover {
  position: relative; aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.media-card-cover.round { border-radius: 50%; }
.media-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.media-card-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #4a2d9e);
  color: #fff;
}
.media-card-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45);
  font-size: 28px; color: #fff;
  opacity: 0; transition: opacity 0.2s;
}
.media-card-play svg { width: 26px; height: 26px; }
.media-card-fallback svg,
.track-thumb-fallback svg {
  width: 28px;
  height: 28px;
}
.track-thumb-fallback svg { width: 18px; height: 18px; }
.media-card:hover .media-card-play { opacity: 1; }

.media-card-body strong {
  display: block; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-card-body span {
  display: block; font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-card-meta { margin-top: 2px; }

.artist-card .media-card-cover { box-shadow: 0 8px 24px rgba(108,60,225,.2); }

/* ── Track table (desktop music list) ── */
.track-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.track-table-head {
  display: none;
  grid-template-columns: 40px 1fr 200px 60px;
  gap: 16px; padding: 10px 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.track-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
  cursor: pointer;
}
.track-row:last-child { border-bottom: 0; }
.track-row:hover { background: var(--bg-hover); }
.track-num { font-size: 13px; color: var(--text-muted); text-align: center; }
.track-play-btn {
  display: none; width: 32px; height: 32px;
  border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 11px;
  place-items: center;
}
.track-play-btn svg { width: 15px; height: 15px; }
.track-row:hover .track-num { display: none; }
.track-row:hover .track-play-btn { display: grid; }

.track-info {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.track-thumb {
  width: 44px; height: 44px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-hover);
}
.track-thumb-fallback {
  display: grid; place-items: center;
  font-size: 16px; color: var(--text-muted);
}
.track-info strong {
  display: block; font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-mobile-artist { display: block; font-size: 12px; color: var(--text-muted); }
.track-artist, .track-duration { display: none; }

/* ── Player bar (desktop music site) ── */
.jt-player-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: #14141c;
  border-top: 1px solid var(--line);
  z-index: 50;
  grid-template-columns: 280px 1fr 160px;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}

.jt-player-track {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.jt-player-cover, .jt-player-bar .cover {
  width: 56px; height: 56px; border-radius: 8px;
  background: var(--bg-hover); flex-shrink: 0;
  object-fit: cover; display: grid; place-items: center;
  font-size: 20px; color: var(--text-muted);
}
.jt-player-meta strong, .jt-player-meta span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jt-player-meta strong { font-size: 14px; }
.jt-player-meta span { font-size: 12px; color: var(--text-muted); }
.jt-player-like {
  background: none; border: 0; color: var(--text-muted);
  font-size: 20px; cursor: pointer; padding: 4px;
}
.jt-player-like:hover { color: var(--accent); }

.jt-player-controls { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jt-player-buttons { display: flex; align-items: center; gap: 16px; }
.jt-ctrl {
  background: none; border: 0; color: var(--text-muted);
  font-size: 16px; cursor: pointer; padding: 4px;
  transition: color 0.15s, transform 0.15s;
}
.jt-ctrl:hover { color: var(--text); }
.jt-ctrl-play {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff !important; color: #000 !important;
  font-size: 14px !important;
  display: grid; place-items: center;
}
.jt-ctrl-play:hover { transform: scale(1.06); }

.jt-player-progress {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px;
}
.jt-time { font-size: 11px; color: var(--text-muted); min-width: 32px; }
.jt-progress-track {
  flex: 1; height: 4px; background: var(--bg-hover);
  border-radius: 99px; overflow: hidden; cursor: pointer;
}
.jt-progress-fill {
  height: 100%; width: 0%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.1s linear;
}

.jt-player-extra { text-align: left; }
.jt-now-playing-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── Site footer ── */
.jt-site-footer {
  display: none;
  padding: 32px 28px 24px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.jt-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 24px; margin-bottom: 20px;
}
.jt-footer-grid strong { display: block; margin-bottom: 8px; font-size: 14px; }
.jt-footer-grid a {
  display: block; font-size: 13px; color: var(--text-muted);
  padding: 3px 0; transition: color 0.15s;
}
.jt-footer-grid a:hover { color: var(--text); }
.jt-footer-copy { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ── Mobile bottom nav + compact player ── */
.bottom-nav {
  position: fixed; bottom: 0; right: 0; left: 0;
  height: var(--nav-h);
  background: #14141c;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  z-index: 45;
}
.bottom-nav a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; color: var(--text-muted);
}
.bottom-nav a.active { color: var(--primary); font-weight: 700; }
.bottom-nav svg { width: 22px; height: 22px; }

.mini-player { display: none; }

/* ── Shared components ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: 0; cursor: pointer;
  border-radius: 999px; padding: 11px 20px;
  font-weight: 700; background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--bg-hover); color: var(--text); }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-block { width: 100%; }

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px;
}
.song-row {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
}
.cover {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--bg-hover); flex: none;
  object-fit: cover; display: grid; place-items: center;
  color: var(--text-muted); font-weight: 800;
}

.empty {
  text-align: center; padding: 48px 24px;
  background: var(--bg-card); border: 1px dashed var(--line);
  border-radius: var(--radius-lg); color: var(--text-muted);
}
.empty h3 { color: var(--text); margin: 0 0 8px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 13px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: var(--bg-elevated);
  color: var(--text); font-size: 15px;
}
.field input:focus { outline: 2px solid rgba(108,60,225,.4); border-color: var(--primary); }
.error { color: var(--accent); font-size: 13px; }
.flash {
  background: rgba(30,122,70,.15); color: #6ee7a0;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
  border: 1px solid rgba(30,122,70,.3);
}

.auth-wrap { min-height: 80vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); }

.page-tabs {
  display: inline-flex; gap: 4px;
  background: var(--bg-card); border-radius: 12px;
  padding: 4px; margin-bottom: 24px; border: 1px solid var(--line);
}
.page-tabs a {
  padding: 8px 20px; border-radius: 9px;
  font-weight: 700; font-size: 14px; color: var(--text-muted);
}
.page-tabs a.active { background: var(--primary); color: #fff; }

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-songs { gap: 8px; }

.player-full { text-align: center; padding: 24px 0; }
.player-art {
  width: min(300px, 70vw); aspect-ratio: 1;
  margin: 0 auto 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); box-shadow: 0 24px 60px rgba(0,0,0,.4);
  display: grid; place-items: center; font-size: 64px; overflow: hidden;
}
.player-art img { width: 100%; height: 100%; object-fit: cover; }

/* Havin */
.havin-fab {
  position: fixed; left: 20px;
  bottom: calc(var(--nav-h) + 16px);
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer; z-index: 60;
  background: var(--primary); color: #fff; font-size: 20px;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.havin-panel {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(var(--nav-h) + 12px);
  max-height: min(70dvh, 520px);
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; z-index: 61;
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: 0.25s ease;
}
.havin-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.havin-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--primary), #7c5ce0);
  color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.havin-head button { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.havin-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.havin-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.havin-msg.user { align-self: flex-start; background: var(--bg-hover); }
.havin-msg.bot { align-self: flex-end; background: var(--primary); color: #fff; }
.havin-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.havin-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--bg-elevated); color: var(--text); }
.havin-form button { border: 0; background: var(--primary); color: #fff; border-radius: 10px; padding: 0 16px; font-weight: 700; cursor: pointer; }

/* Admin (light theme preserved) */
.admin-body { background: #f4f2fa; color: #1a1a2e; }
.admin-body .jt-page { color: #1a1a2e; }

/* ── Desktop breakpoint ── */
@media (min-width: 1024px) {
  .jt-sidebar { display: flex; }
  .jt-main { margin-right: var(--sidebar-w); }
  .jt-mobile-menu { display: none; }
  .jt-header-nav { display: flex; }
  .bottom-nav { display: none; }
  .jt-player-bar { display: grid; }
  .jt-site-footer { display: block; }
  .jt-page { padding-bottom: calc(var(--player-h) + 32px); }
  .havin-fab { bottom: calc(var(--player-h) + 20px); }
  .havin-panel { bottom: calc(var(--player-h) + 16px); left: auto; right: 24px; width: 380px; }

  .music-hero { grid-template-columns: 1.2fr 0.8fr; padding: 48px 44px; }
  .music-hero-visual { display: flex; position: relative; }
  .music-vinyl { position: relative; }

  .media-card { flex-basis: 180px; }
  .track-table-head { display: grid; }
  .track-row {
    grid-template-columns: 40px 1fr 200px 60px;
    padding: 8px 20px;
  }
  .track-artist, .track-duration { display: block; font-size: 13px; color: var(--text-muted); }
  .track-mobile-artist { display: none; }
  .track-duration { text-align: left; }
}

@media (max-width: 1023px) {
  .jt-sidebar {
    display: flex;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
  }
  .jt-sidebar.open { transform: none; }
  .jt-site-header { padding: 10px 16px; }
  .jt-page { padding: 16px; padding-bottom: calc(var(--nav-h) + 24px); }
  .music-hero { padding: 28px 20px; }
  .section-head h2 { font-size: 20px; }
}

/* Admin layout */
.admin-layout { display: grid; min-height: 100dvh; }
@media (min-width: 900px) { .admin-layout { grid-template-columns: 260px 1fr; } }
.admin-side { background: #12121c; color: #ece8ff; padding: 24px 16px; }
.admin-nav a { display: block; padding: 11px 14px; border-radius: 10px; color: #b8b0d4; font-weight: 600; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(108,60,225,.22); color: #fff; }
.admin-main { padding: 24px; }
.table-wrap { overflow: auto; background: #fff; border-radius: 12px; border: 1px solid #ece8f5; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid #ece8f5; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid #ece8f5; }
.stat b { display: block; font-size: 26px; color: var(--primary); }
.checkbox { display: flex; gap: 8px; align-items: flex-start; }

/* ══════════════════════════════════════
   دانلود موزیک — Download site UI
   ══════════════════════════════════════ */

.btn-download {
  background: linear-gradient(135deg, #6C3CE1, #8b5cf6);
  color: #fff;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 28px var(--primary-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--primary-glow);
  background: linear-gradient(135deg, #5429c7, #7c3aed);
}

.hero-search {
  display: flex; gap: 8px; max-width: 520px; margin-bottom: 24px;
}
.hero-search input {
  flex: 1; border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: 12px; padding: 14px 18px;
  color: var(--text); font-size: 15px; outline: none;
}
.hero-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,60,225,.2); }
.hero-search button {
  border: 0; background: var(--primary); color: #fff;
  padding: 0 24px; border-radius: 12px; font-weight: 700; cursor: pointer;
}

.music-hero--download { min-height: auto; }

.media-card-wrap {
  flex: 0 0 160px;
  display: flex; flex-direction: column; gap: 8px;
}
.media-card-dl-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 6px; letter-spacing: 0.05em;
}
.btn-dl-card {
  display: block; text-align: center;
  padding: 8px; border-radius: 10px;
  background: rgba(108,60,225,.15); color: var(--primary);
  font-size: 12px; font-weight: 700;
  border: 1px solid rgba(108,60,225,.3);
  transition: background 0.15s;
}
.btn-dl-card:hover { background: var(--primary); color: #fff; }

.track-row-wrap {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-left: 8px;
}
.track-row-wrap:last-child { border-bottom: 0; }
.track-row-wrap .track-row {
  flex: 1; border-bottom: 0; padding-left: 8px;
}
.track-size { display: none; font-size: 13px; color: var(--text-muted); }

.btn-dl-sm {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(108,60,225,.12); color: var(--primary);
  font-size: 12px; font-weight: 700;
  border: 1px solid rgba(108,60,225,.25);
  margin-left: 8px;
  transition: all 0.15s;
}
.btn-dl-sm:hover { background: var(--primary); color: #fff; }

/* صفحه دانلود آهنگ */
.download-page { max-width: 900px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--primary); }

.download-hero {
  display: grid; gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 28px;
}
@media (min-width: 640px) {
  .download-hero { grid-template-columns: 220px 1fr; align-items: start; }
}

.download-cover {
  aspect-ratio: 1; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.download-cover img { width: 100%; height: 100%; object-fit: cover; }
.download-cover-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 64px; color: var(--text-muted);
  background: linear-gradient(135deg, var(--primary), #1a1a2e);
}

.download-eyebrow {
  font-size: 12px; font-weight: 700; color: var(--yellow);
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px;
}
.download-info h1 {
  margin: 0 0 12px; font-size: clamp(22px, 4vw, 32px);
  font-weight: 800; line-height: 1.35;
}
.download-artist { margin: 0 0 8px; color: var(--text-muted); }
.download-artist strong { color: var(--text); }
.download-meta-line { margin: 0 0 16px; font-size: 14px; color: var(--text-muted); }

.download-specs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.download-specs span {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 8px;
  background: var(--bg-hover); color: var(--text-muted);
  border: 1px solid var(--line);
}

.download-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.btn-play-online {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line);
  color: var(--text); font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: 15px;
}
.btn-play-online:hover { background: var(--bg-hover); }

.download-note {
  font-size: 12px; color: var(--text-muted); margin: 0;
  line-height: 1.7; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.download-audio {
  width: 100%; margin-bottom: 32px;
  border-radius: 12px;
}

.download-quality-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}
.download-quality-title {
  margin: 0 0 4px; font-size: 13px; font-weight: 700;
  color: var(--text-muted);
}
.download-quality-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-hover); border: 1px solid var(--line);
}
.download-quality-meta {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.download-quality-meta strong {
  font-size: 14px; color: var(--text);
}
.download-quality-meta span {
  font-size: 12px; color: var(--text-muted);
}
.btn-download-sm {
  padding: 10px 16px; font-size: 13px; white-space: nowrap;
}
.download-alert {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #b8860b;
  font-size: 13px;
  line-height: 1.7;
}
.download-alert code { font-size: 12px; }
.download-alert-hidden { display: none; }

.song-description {
  margin-bottom: 40px; padding: 24px;
  border-radius: 16px; background: var(--bg-hover);
  border: 1px solid var(--line); line-height: 1.9;
}
.song-description .song-intro,
.song-description .song-lyrics,
.song-description .song-meta,
.song-description .song-tags {
  margin-bottom: 20px;
}
.song-description .song-lyrics h3,
.song-description .ltitle {
  margin: 0 0 12px; font-size: 18px;
}
.song-description .song-lyrics p {
  text-align: center; margin: 0;
}
.song-description .song-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-top: 16px;
}
.song-description .song-gallery img {
  width: 100%; border-radius: 10px; object-fit: cover;
}
.song-description .song-cover-inline {
  max-width: 320px; margin: 0 auto; display: block; border-radius: 12px;
}

@media (min-width: 1024px) {
  .track-table-head {
    grid-template-columns: 40px 1fr 160px 72px 56px 100px !important;
    padding-right: 28px;
  }
  .track-row-wrap .track-row {
    grid-template-columns: 40px 1fr 160px 72px 56px !important;
  }
  .track-size { display: block; }
  .track-row-wrap { padding-right: 12px; }
}
