/* home.css */

.home-body {
  margin: 0;
  padding: 0;
  background: var(--bg-main, #0f0f13);
  color: var(--text-primary, #ffffff);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.home-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(15, 15, 19, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.home-nav .logo-icon {
  color: var(--accent, #6366f1);
  font-size: 1.5rem;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-bottom: 4rem;
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
  color: #e2e8f0;
}

/* Marquee Section */
.marquee-section {
  width: 100%;
  overflow: hidden;
  padding-top: 2rem;
}

.marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Add subtle fade on edges */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.marquee-content {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  animation: scrollLeft 40s linear infinite;
  /* Pause on hover for better UX */
}
.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-img {
  height: 200px;
  width: auto;
  min-width: 150px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  user-select: none;
}
.marquee-img:hover {
  transform: scale(1.05);
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    /* Magic number depends on duplication strategy */
    transform: translateX(-50%);
  }
}

/* Albums Section */
.albums-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 0 2rem;
  overflow-x: auto;
  /* Hide scrollbar */
  scrollbar-width: none;
}
.albums-grid::-webkit-scrollbar {
  display: none;
}

.album-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.album-item:hover {
  transform: translateY(-4px);
}

.album-cover {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  background: var(--bg-card, #1c1c22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
}

.album-info {
  text-align: center;
}
.album-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
}
.album-count {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

/* Videos Section */
.videos-section {
  padding: 0 2rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  position: relative;
  background: var(--bg-card, #1c1c22);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  aspect-ratio: 16/9;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.video-card video,
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}
.video-card:hover .play-overlay {
  opacity: 1;
}
.play-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  padding-left: 4px; /* optical center */
}

/* Reuse lightbox minimal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox.hidden {
  display: none !important;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1010;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
}
