/* ============================================
   HOME.CSS — Professional streaming layout
   Spotify/Apple Music/Deezer inspired
   ============================================ */

.home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 24px;
}

/* ============================================
   HERO — Compact 200px max
   ============================================ */

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  min-height: 180px;
  max-height: 200px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-bg, var(--bg-elevated)) center/cover no-repeat;
  filter: blur(60px) saturate(1.3);
  opacity: 0.2;
  transform: scale(1.1);
  z-index: 0;
}

.home-hero-cover {
  position: relative;
  z-index: 1;
  width: 130px;
  height: 130px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.home-hero-info {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  width: fit-content;
  margin-bottom: 2px;
}

.home-hero-badge i {
  font-size: 0.55rem;
}

.home-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.home-hero-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.home-hero-actions .btn {
  border-radius: 999px;
  font-weight: 600;
}

.home-hero-play {
  padding: 7px 22px;
  font-size: 0.8rem;
  border: none;
}

.home-hero-fav {
  padding: 7px 14px;
  font-size: 0.78rem;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition);
}

.home-hero-fav:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108,92,231,0.08);
}

.home-hero-share {
  padding: 7px 14px;
  font-size: 0.78rem;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition);
  border-radius: 999px;
}
.home-hero-share:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108,92,231,0.08);
}

/* Hero fallback */
.home-hero--fallback {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--card));
}

.home-hero--fallback .home-hero-info {
  align-items: center;
}

.home-hero--fallback .home-hero-title {
  font-size: 1.3rem;
}

/* ============================================
   SECTION
   ============================================ */

.home-section {
  margin-bottom: 28px;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-section-title i {
  font-size: 0.85rem;
  color: var(--primary);
}

.home-section-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.home-section-link:hover {
  color: var(--primary);
}

/* Cards now use the unified ms-card system in theme.css */

/* ============================================
   RESET BANNER
   ============================================ */

.home-reset-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.home-reset-banner i {
  font-size: 1rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.home-empty {
  text-align: center;
  padding: 28px 16px;
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-light);
}

.home-empty i {
  font-size: 1.6rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.home-empty p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.home-empty small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.home .fade-in {
  animation: homeFadeIn 0.35s ease forwards;
}

@keyframes homeFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .home {
    padding: 0;
  }

  .home-hero {
    gap: 16px;
    padding: 16px;
    min-height: 150px;
    max-height: 170px;
    margin-bottom: 20px;
  }

  .home-hero-cover {
    width: 90px;
    height: 90px;
  }

  .home-hero-title {
    font-size: 1.1rem;
  }

  .home-hero-subtitle {
    font-size: 0.72rem;
  }

  .home-hero-play {
    padding: 5px 16px;
    font-size: 0.72rem;
  }

  .home-hero-fav {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .home-section {
    margin-bottom: 20px;
  }

  .home-section-title {
    font-size: 0.95rem;
  }

  .home-hero--fallback .home-hero-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .home-hero {
    gap: 12px;
    padding: 12px;
    min-height: 130px;
    max-height: 150px;
  }

  .home-hero-cover {
    width: 70px;
    height: 70px;
  }

  .home-hero-title {
    font-size: 0.95rem;
  }

}
