/* جهان ترانه — Homepage / 3D music discovery */

.home-page {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 24px;
}

/* ── Hero ── */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  min-height: 570px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 54px clamp(28px, 5vw, 72px);
  margin-bottom: 56px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(18, 18, 26, 0.94), rgba(10, 10, 15, 0.66)),
    radial-gradient(ellipse at 18% 80%, var(--tu-glow-soft), transparent 50%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 30%, transparent 70%, rgba(34,211,238,.08));
  pointer-events: none;
}
.home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .23;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 72% 50%, black, transparent 70%);
  transform: perspective(500px) rotateX(55deg) translateY(100px) scale(1.4);
  transform-origin: center bottom;
  pointer-events: none;
}
.home-hero__orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: home-blob-float 8s ease-in-out infinite alternate;
}
.home-hero__orb--one {
  top: -180px;
  left: 32%;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, var(--tu-glow-soft), transparent 68%);
}
.home-hero__orb--two {
  right: -160px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--tu-cyan-soft), transparent 68%);
  animation-delay: -3s;
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: home-rise .7s cubic-bezier(.16,1,.3,1) both;
}
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--tu-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.home-kicker__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--od-accent);
  box-shadow: 0 0 0 5px rgba(30,215,96,.12), 0 0 18px var(--od-accent-glow);
  animation: home-pulse 2s ease-in-out infinite;
}
.home-hero h1 {
  max-width: 570px;
  margin: 0 0 18px;
  color: var(--od-text);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.home-hero h1 span {
  display: inline-block;
  background: linear-gradient(120deg, var(--od-accent), var(--tu-cyan) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero__lead {
  max-width: 520px;
  margin: 0 0 26px;
  color: var(--od-text-muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Search */
.home-search {
  display: flex;
  align-items: center;
  max-width: 570px;
  min-height: 62px;
  gap: 12px;
  padding: 7px 8px 7px 9px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(9, 9, 14, .64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 35px rgba(0,0,0,.18);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.home-search:focus-within {
  border-color: rgba(30,215,96,.5);
  box-shadow: 0 0 0 4px rgba(30,215,96,.1), 0 16px 40px rgba(0,0,0,.25);
  transform: translateY(-2px);
}
.home-search__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  color: var(--od-text-muted);
}
.home-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  color: var(--od-text);
  background: transparent;
  font-size: 14px;
}
.home-search input::placeholder { color: var(--od-text-dim); }
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 46px;
  gap: 7px;
  border: 0;
  border-radius: 13px;
  color: #0a0a0f;
  background: var(--od-accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.home-search button svg { width: 16px; height: 16px; }
.home-search button:hover {
  background: var(--od-accent-hover);
  box-shadow: 0 7px 20px var(--od-accent-glow);
  transform: translateY(-1px);
}

.home-quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--od-text-dim);
  font-size: 11px;
}
.home-quick-links a {
  padding: 5px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--od-text-muted);
  background: rgba(255,255,255,.03);
  transition: color .18s, border-color .18s, background .18s;
}
.home-quick-links a:hover {
  color: var(--od-accent);
  border-color: rgba(30,215,96,.35);
  background: rgba(30,215,96,.08);
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.home-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 92px;
}
.home-stat strong {
  color: var(--od-text);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}
.home-stat span {
  color: var(--od-text-dim);
  font-size: 11px;
}

/* 3D visual */
.home-hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 430px;
  place-items: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: home-visual-in .9s .12s cubic-bezier(.16,1,.3,1) both;
  transition: transform .2s ease-out;
}
.home-orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(139,92,246,.32);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(-18deg);
  box-shadow: 0 0 35px var(--tu-glow-soft);
}
.home-orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 29%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tu-cyan);
  box-shadow: 0 0 20px var(--tu-cyan);
}
.home-orbit--outer { animation: home-orbit 16s linear infinite; }
.home-orbit--inner {
  width: 300px;
  height: 300px;
  border-color: rgba(34,211,238,.22);
  transform: rotateX(68deg) rotateZ(38deg);
  animation: home-orbit-reverse 13s linear infinite;
}
.home-orbit--inner::after {
  top: auto;
  right: 14%;
  bottom: 16%;
  left: auto;
  width: 7px;
  height: 7px;
  background: var(--od-accent);
  box-shadow: 0 0 16px var(--od-accent);
}
.home-disc-shadow {
  position: absolute;
  width: 295px;
  height: 62px;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  filter: blur(18px);
  transform: translateY(142px) rotateX(68deg);
}
.home-disc {
  position: relative;
  display: grid;
  width: 280px;
  height: 280px;
  place-items: center;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, transparent 0 10px, rgba(255,255,255,.045) 11px 12px),
    conic-gradient(from 210deg, var(--tu-glow), var(--od-bg-surface) 25%, var(--tu-cyan), var(--od-bg-surface) 63%, var(--tu-glow));
  box-shadow: -20px 25px 45px rgba(0,0,0,.45), 0 0 60px rgba(139,92,246,.24);
  transform: rotateX(14deg) rotateY(-18deg) rotateZ(-14deg);
  animation: home-disc-float 5s ease-in-out infinite alternate;
}
.home-disc::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}
.home-disc__groove {
  position: absolute;
  width: 162px;
  height: 162px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 13px rgba(0,0,0,.08), 0 0 0 27px rgba(255,255,255,.03);
}
.home-disc__label {
  display: grid;
  width: 95px;
  height: 95px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 50%;
  color: #0a0a0f;
  background: linear-gradient(145deg, var(--od-accent), var(--tu-cyan));
  box-shadow: 0 0 25px rgba(30,215,96,.35);
  text-align: center;
}
.home-disc__note { width: 31px; height: 31px; color: #0a0a0f; }
.home-disc__label small { font-size: 8px; font-weight: 800; letter-spacing: .12em; }

.home-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  background: rgba(18,18,26,.68);
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
  text-align: right;
  animation: home-card-float 4.8s ease-in-out infinite alternate;
}
.home-floating-card--top { top: 42px; right: 2%; }
.home-floating-card--bottom { bottom: 38px; left: 2%; animation-delay: -2.2s; }
.home-floating-card > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-floating-card b { color: var(--od-text); font-size: 11px; }
.home-floating-card small { color: var(--od-text-muted); font-size: 9px; direction: ltr; }
.home-floating-card__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
}
.home-floating-card__icon svg { width: 18px; height: 18px; }
.home-floating-card__icon--green { color: var(--od-accent); background: rgba(30,215,96,.13); }
.home-floating-card__icon--purple { color: var(--tu-cyan); background: rgba(34,211,238,.12); }
.home-eq {
  position: absolute;
  right: 16%;
  bottom: 8%;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 32px;
  opacity: .8;
}
.home-eq i {
  display: block;
  width: 4px;
  height: 12px;
  border-radius: 5px;
  background: var(--od-accent);
  animation: home-eq 1s ease-in-out infinite alternate;
}
.home-eq i:nth-child(2) { height: 23px; animation-delay: -.3s; }
.home-eq i:nth-child(3) { height: 16px; animation-delay: -.6s; }
.home-eq i:nth-child(4) { height: 28px; animation-delay: -.1s; }
.home-eq i:nth-child(5) { height: 19px; animation-delay: -.7s; }
.home-eq i:nth-child(6) { height: 26px; animation-delay: -.45s; }
.home-eq i:nth-child(7) { height: 11px; animation-delay: -.8s; }
.home-now-playing {
  position: absolute;
  right: 13%;
  bottom: 17%;
  display: flex;
  align-items: center;
  max-width: 220px;
  gap: 9px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  color: var(--od-text);
  background: rgba(10,10,15,.76);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  cursor: pointer;
  text-align: right;
  transition: transform .2s, border-color .2s;
}
.home-now-playing:hover { border-color: rgba(30,215,96,.5); transform: translateY(-3px); }
.home-now-playing img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}
.home-now-playing > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}
.home-now-playing small { color: var(--tu-cyan); font-size: 9px; }
.home-now-playing b { overflow: hidden; color: var(--od-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-now-playing > svg { width: 22px; height: 22px; color: var(--od-accent); }

/* ── Sections ── */
.home-section {
  margin-bottom: 58px;
  animation: home-rise .7s .18s cubic-bezier(.16,1,.3,1) both;
}
.home-section--pending {
  animation: none;
  opacity: 0;
  transform: translateY(20px);
}
.home-section--visible {
  animation: home-rise .65s cubic-bezier(.16,1,.3,1) both;
}
.home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.home-section__title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.home-section__title p {
  margin: 0 0 3px;
  color: var(--tu-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.home-section__title h2 {
  margin: 0;
  color: var(--od-text);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.home-section__icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 13px;
}
.home-section__icon svg { width: 21px; height: 21px; }
.home-section__icon--green { color: var(--od-accent); background: rgba(30,215,96,.1); }
.home-section__icon--purple { color: var(--tu-glow); background: rgba(139,92,246,.12); }
.home-section__icon--cyan { color: var(--tu-cyan); background: rgba(34,211,238,.1); }
.home-section__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--od-text-muted);
  font-size: 12px;
  font-weight: 700;
  transition: color .18s, gap .18s;
}
.home-section__more span { color: var(--od-accent); font-size: 18px; line-height: 1; }
.home-section__more:hover { gap: 10px; color: var(--od-accent); }

.home-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.home-cards .media-card-wrap {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--glass-border);
  border-radius: 19px;
  background: rgba(18,18,26,.55);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.home-cards .media-card-wrap:hover {
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 17px 32px rgba(0,0,0,.23);
  transform: translateY(-5px);
}
.home-cards .media-card { width: 100%; }
.home-cards .media-card-cover { margin-bottom: 11px; border-radius: 13px; }
.home-cards .media-card-body strong { font-size: 13px; }
.home-cards .btn-dl-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin-top: 11px;
  border-radius: 10px;
  font-size: 11px;
}

/* Genres / bento cards */
.home-genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.home-genre-card {
  position: relative;
  display: flex;
  min-height: 118px;
  align-items: end;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--glass-border);
  border-radius: 17px;
  background: var(--od-bg-surface);
  isolation: isolate;
  transition: transform .25s, box-shadow .25s;
}
.home-genre-card:hover {
  box-shadow: 0 16px 28px rgba(0,0,0,.25);
  transform: translateY(-4px) rotateX(2deg);
}
.home-genre-card__shape {
  position: absolute;
  top: -35px;
  left: 35%;
  z-index: -1;
  width: 150px;
  height: 150px;
  border-radius: 43% 57% 65% 35%;
  opacity: .8;
  transform: rotate(25deg);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.home-genre-card:hover .home-genre-card__shape { transform: rotate(55deg) scale(1.13); }
.home-genre-card--1 .home-genre-card__shape { background: linear-gradient(135deg, var(--tu-glow), var(--od-accent)); }
.home-genre-card--2 .home-genre-card__shape { background: linear-gradient(135deg, var(--tu-cyan), var(--tu-glow)); }
.home-genre-card--3 .home-genre-card__shape { background: linear-gradient(135deg, var(--od-accent), var(--tu-cyan)); }
.home-genre-card--4 .home-genre-card__shape { background: linear-gradient(135deg, var(--tu-glow), var(--tu-cyan)); }
.home-genre-card__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.home-genre-card__content strong { color: var(--od-text); font-size: 15px; }
.home-genre-card__content small { color: rgba(255,255,255,.68); font-size: 11px; }
.home-genre-card__arrow {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 17px;
  height: 17px;
  color: rgba(255,255,255,.65);
  transform: rotate(180deg);
  transition: color .2s, transform .2s;
}
.home-genre-card:hover .home-genre-card__arrow { color: var(--od-text); transform: rotate(180deg) translateX(-3px); }

.home-track-table {
  border-color: var(--glass-border);
  background: rgba(18,18,26,.62);
  box-shadow: 0 16px 35px rgba(0,0,0,.16);
}
.home-track-table .track-row-wrap:last-child .track-row { border-bottom: 0; }

@keyframes home-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes home-visual-in {
  from { opacity: 0; transform: scale(.88) rotateY(-10deg); }
  to { opacity: 1; transform: scale(1) rotateY(0); }
}
@keyframes home-disc-float {
  from { transform: rotateX(14deg) rotateY(-18deg) rotateZ(-14deg) translateY(-7px); }
  to { transform: rotateX(17deg) rotateY(-13deg) rotateZ(-10deg) translateY(9px); }
}
@keyframes home-card-float {
  from { transform: translateY(-4px) rotateZ(-1deg); }
  to { transform: translateY(6px) rotateZ(1deg); }
}
@keyframes home-orbit { to { transform: rotateX(64deg) rotateZ(342deg); } }
@keyframes home-orbit-reverse { to { transform: rotateX(68deg) rotateZ(-322deg); } }
@keyframes home-blob-float { to { transform: translate(25px, 18px) scale(1.08); } }
@keyframes home-eq { to { height: 29px; opacity: .55; } }
@keyframes home-pulse { 50% { opacity: .5; transform: scale(.78); } }

@media (max-width: 1050px) {
  .home-hero { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); padding-inline: 38px; }
  .home-hero__visual { transform: scale(.87); margin: -25px; }
  .home-cards { grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 12px; }
}
@media (max-width: 820px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 28px 0;
  }
  .home-hero__copy { max-width: 680px; }
  .home-hero__visual { min-height: 370px; margin: -15px auto -25px; width: min(100%, 500px); }
  .home-floating-card--top { right: 0; }
  .home-floating-card--bottom { left: 0; }
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .home-hero { padding: 32px 18px 0; margin-bottom: 40px; border-radius: 21px; }
  .home-hero h1 { font-size: 39px; }
  .home-hero__lead { font-size: 14px; }
  .home-search { min-height: 56px; gap: 5px; border-radius: 15px; }
  .home-search__icon { margin-right: 5px; }
  .home-search input { font-size: 12px; }
  .home-search button { min-width: 76px; height: 42px; font-size: 12px; }
  .home-search button svg { display: none; }
  .home-stats { gap: 19px; }
  .home-stat strong { font-size: 20px; }
  .home-section { margin-bottom: 42px; }
  .home-section__title h2 { font-size: 21px; }
  .home-section__icon { width: 37px; height: 37px; flex-basis: 37px; border-radius: 11px; }
  .home-section__icon svg { width: 18px; height: 18px; }
  .home-section__more { font-size: 11px; }
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-cards .media-card-wrap { padding: 8px; border-radius: 14px; }
  .home-cards .media-card-body strong { font-size: 12px; }
  .home-cards .media-card-body span { font-size: 10px; }
  .home-genre-card { min-height: 100px; padding: 13px; }
  .home-genre-card__content strong { font-size: 13px; }
  .home-genre-card__shape { left: 25%; }
  .home-hero__visual { min-height: 310px; transform: scale(.78); margin: -38px -45px -55px; width: calc(100% + 90px); }
  .home-floating-card { transform: scale(1.05); }
  .home-floating-card--top { right: 1%; }
  .home-floating-card--bottom { left: 1%; }
  .home-now-playing { right: 10%; bottom: 12%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
