/* 스크롤 컨테이너 */
.scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  padding-bottom: 1rem;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.scroll-container::-webkit-scrollbar {
  height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

/* 오늘의 추천 - 윌라 스타일 */
.spotlight-grid {
  display: flex;
  gap: 1rem;
  min-width: min-content;
}

.spotlight-card {
  flex: 0 0 140px;
  width: 140px;
}

.spotlight-link {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
}

.spotlight-thumb {
  position: relative;
  width: 140px;
  height: 200px;
  border-radius: 0px 10px 10px 0px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.spotlight-card:hover .spotlight-thumb {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

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

.spotlight-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-size: 3rem;
}

.spotlight-info {
  /* 텍스트 영역 */
}

.spotlight-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}

.spotlight-writer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 인기 순위 - 윌라 스타일 */
.ranking-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.rank-card {
  display: grid;
  grid-template-columns: 30px 60px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: 0.2s;
  border: 1px solid transparent;
}

.rank-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.rank-badge {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* 1-3위 특별 색상 */
.rank-card:nth-child(1) .rank-badge {
  color: #fbbf24;
  font-size: 1.5rem;
}

.rank-card:nth-child(2) .rank-badge {
  color: #9ca3af;
  font-size: 1.5rem;
}

.rank-card:nth-child(3) .rank-badge {
  color: #fb923c;
  font-size: 1.5rem;
}

.rank-thumb {
  position: relative;
  width: 60px;
  height: 86px;
  border-radius: 0px 10px 10px 0px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.rank-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-size: 1.5rem;
}

.rank-details {
  min-width: 0;
  flex: 1;
}

.rank-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}

.rank-author {
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.play-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
  .spotlight-card {
    flex: 0 0 130px;
    width: 130px;
  }

  .spotlight-thumb {
    width: 130px;
    height: 186px;
  }

  .ranking-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-card {
    grid-template-columns: 28px 55px 1fr auto;
    gap: 0.75rem;
  }

  .rank-thumb {
    width: 55px;
    height: 79px;
  }
}

/* 반응형 - 모바일 중형 */
@media (max-width: 768px) {
  .spotlight-card {
    flex: 0 0 110px;
    width: 110px;
  }

  .spotlight-thumb {
    width: 110px;
    height: 157px;
    margin-bottom: 0.5rem;
  }

  .spotlight-name {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .spotlight-writer {
    font-size: 0.75rem;
  }

  .ranking-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .rank-card {
    grid-template-columns: 24px 48px 1fr;
    gap: 0.6rem;
    padding: 0.5rem;
  }

  .rank-badge {
    font-size: 1rem;
  }

  .rank-card:nth-child(1) .rank-badge,
  .rank-card:nth-child(2) .rank-badge,
  .rank-card:nth-child(3) .rank-badge {
    font-size: 1.2rem;
  }

  .rank-thumb {
    width: 48px;
    height: 69px;
  }

  .rank-title {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }

  .rank-author {
    font-size: 0.75rem;
  }

  .rank-meta {
    grid-column: 3;
    justify-content: flex-end;
    margin-top: 0.25rem;
  }

  .play-count {
    font-size: 0.7rem;
  }

  .play-count svg {
    width: 12px;
    height: 12px;
  }
}

/* 반응형 - 모바일 소형 */
@media (max-width: 480px) {
  .spotlight-card {
    flex: 0 0 100px;
    width: 100px;
  }

  .spotlight-thumb {
    width: 100px;
    height: 143px;
    margin-bottom: 0.4rem;
  }

  .spotlight-name {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }

  .spotlight-writer {
    font-size: 0.7rem;
  }

  .ranking-container {
    display: none;

  }


  .rank-card {
    grid-template-columns: 22px 45px 1fr;
    gap: 0.5rem;
    padding: 0.45rem;
  }

  .rank-badge {
    font-size: 0.95rem;
  }

  .rank-card:nth-child(1) .rank-badge,
  .rank-card:nth-child(2) .rank-badge,
  .rank-card:nth-child(3) .rank-badge {
    font-size: 1.1rem;
  }

  .rank-thumb {
    width: 45px;
    height: 64px;
  }

  .rank-title {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
  }

  .rank-author {
    font-size: 0.7rem;
  }

  .rank-meta {
    margin-top: 0.2rem;
  }

  .play-count {
    font-size: 0.65rem;
  }

  .play-count svg {
    width: 11px;
    height: 11px;
  }
}

/* 반응형 - 초소형 모바일 */
@media (max-width: 360px) {
  .spotlight-card {
    flex: 0 0 90px;
    width: 90px;
  }

  .spotlight-thumb {
    width: 90px;
    height: 129px;
  }

  .rank-card {
    grid-template-columns: 20px 42px 1fr;
    gap: 0.45rem;
    padding: 0.4rem;
  }

  .rank-thumb {
    width: 42px;
    height: 60px;
  }
}