/* ========================================
   북 스니펫 섹션
   ======================================== */
.snippet-section {
  padding: 2rem 0;
  margin: 3rem 0;
}
.snippet-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.snippet-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.snippet-grid::-webkit-scrollbar {
  height: 8px;
}
.snippet-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
}
.snippet-card {
  position: relative;
  min-width: 200px;
  max-width: 200px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.snippet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.snippet-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.snippet-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.fallback-bg {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}
.snippet-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.85));
}
.snippet-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 16px;
  color: white;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.snippet-meta {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.snippet-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 12px;
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  overflow-y: auto;
}
.snippet-text::-webkit-scrollbar {
  width: 4px;
}
.snippet-text::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
.snippet-audio-player {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  width: 50px;
  z-index: 3;
}
.snippet-audio-player button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.snippet-audio-player svg {
  width: 28px;
  height: 28px;
  fill: #6366F1;
}

/* Snippet Section - Responsive */
@media (max-width: 1200px) {
  .snippet-card {
    min-width: 100px;
    max-width: 100px;
    height: 160px;
  }
 h2{
        font-weight: 700;
    font-size: medium;
  }
  .snippet-card-content {
    padding: 8px;
  }
  .snippet-meta {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  .snippet-text {
    font-size: 0.7rem;
    padding: 6px;
  }
  .snippet-audio-player {
    width: 40px;
    padding: 4px 5px;
  }
  .snippet-audio-player svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 992px) {
  .snippet-card {
    min-width: 90px;
    max-width: 90px;
    height: 144px;
  }
  .snippet-card-content {
    padding: 7px;
  }
  .snippet-meta {
    font-size: 0.8rem;
  }
  .snippet-text {
    font-size: 0.65rem;
    padding: 5px;
  }
  .snippet-audio-player {
    width: 35px;
    padding: 3px 4px;
  }
  .snippet-audio-player svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 480px) {
  .snippet-card {
    min-width: 150px;
    max-width: 150px;
    height: 258px;
  }
  .snippet-card-content {
    padding: 6px;
  }
  .snippet-meta {
    font-size: 0.75rem;
  }
  .snippet-text {
    font-size: 0.6rem;
    padding: 4px;
  }
  .snippet-audio-player {
    width: 30px;
    padding: 2px 3px;
  }
  .snippet-audio-player svg {
    width: 16px;
    height: 16px;
  }
}