/* ============================================================
   DIGGING.CSS — WhoSampled 스타일 샘플링 비교 페이지
   ============================================================ */

/* ── 로컬 변수 ── */
:root {
  --dg-bg: #0a0a0a;
  --dg-card-bg: #111;
  --dg-card-border: #2a2a2a;
  --dg-header-bg: #1a1a1a;
  --dg-gold: #c8a96e;
  --dg-text: #e8e8e8;
  --dg-text-muted: #888;
  --dg-text-dim: #555;
  --dg-badge-bg: #2a2a2a;
  --dg-badge-text: #aaa;
  --dg-link: #c8a96e;
  --dg-divider: #222;
}

/* ── 기본 레이아웃 ── */
.digging-main {
  background: var(--dg-bg);
  min-height: 100vh;
  padding-top: 80px;
}

/* ── 헤더 ── */
.digging-header {
  padding: 60px 40px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: var(--dg-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--dg-gold); }

.digging-desc {
  color: var(--dg-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 12px;
}
.digging-desc strong {
  color: var(--dg-gold);
  font-weight: 600;
}

/* ── 샘플 목록 ── */
.sample-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── 샘플 카드 ── */
.sample-card {
  background: var(--dg-card-bg);
  border: 1px solid var(--dg-card-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.sample-card:hover { border-color: #3a3a3a; }

/* ── 카드 헤더 ── */
.sample-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--dg-header-bg);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.sample-header:hover { background: #1e1e1e; }

.sample-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.sample-number {
  font-size: 0.75rem;
  color: var(--dg-gold);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  opacity: 0.7;
}

.sample-titles { min-width: 0; }

.sample-nujabes {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dg-text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sample-nujabes span {
  font-weight: 400;
  color: var(--dg-text-muted);
  font-size: 0.88rem;
}
.sample-album {
  font-size: 0.78rem;
  color: var(--dg-text-muted);
  margin: 0;
}

.sample-type-badge {
  flex-shrink: 0;
  background: var(--dg-badge-bg);
  color: var(--dg-badge-text);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.sample-toggle {
  background: none;
  border: none;
  color: var(--dg-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform 0.3s, color 0.2s;
  flex-shrink: 0;
}
.sample-card.open .sample-toggle {
  transform: rotate(180deg);
  color: var(--dg-gold);
}

/* ── 카드 바디 (아코디언) ── */
.sample-body {
  display: none;
  padding: 24px 20px;
  border-top: 1px solid var(--dg-divider);
}
.sample-card.open .sample-body { display: block; }

/* ── 트랙 정보 행 (좌/우 분할) ── */
.track-info-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

/* ── 트랙 정보 블록 ── */
.track-info-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.track-cover {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
  background: #1a1a1a;
}
.track-cover-placeholder {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 2px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  position: relative;
}
.track-cover-placeholder::after {
  content: '♪';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #333;
}

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

.track-title-sm {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dg-link);
  margin: 0 0 3px;
  line-height: 1.3;
}
.track-artist-sm {
  font-size: 0.8rem;
  color: var(--dg-text-muted);
  margin: 0 0 2px;
}
.track-album-sm {
  font-size: 0.8rem;
  color: var(--dg-link);
  margin: 0 0 1px;
}
.track-label-year-sm {
  font-size: 0.76rem;
  color: var(--dg-text-dim);
  margin: 0 0 10px;
}

.sample-appears-sm {
  font-size: 0.78rem;
  color: var(--dg-text-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.8;
}

/* ── 시간 링크 버튼 ── */
.time-link-btn {
  background: none;
  border: none;
  color: var(--dg-gold);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}
.time-link-btn:hover { color: #e8c87e; }

/* ── JUMP 버튼 ── */
.jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1e1e1e;
  border: 1px solid #333;
  color: var(--dg-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
}
.jump-btn:hover {
  background: var(--dg-gold);
  color: #000;
  border-color: var(--dg-gold);
}
.jump-btn.jump-active {
  background: var(--dg-gold);
  color: #000;
  border-color: var(--dg-gold);
  transform: scale(0.95);
}

/* ── 화살표 (sampled) ── */
.track-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.arrow-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dg-gold);
  text-transform: uppercase;
  position: relative;
}
.arrow-circle::before {
  content: '→';
  position: absolute;
  font-size: 1.1rem;
  color: var(--dg-gold);
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
}

/* ── 플레이어 행 ── */
.players-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 20px;
}

.player-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.youtube-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
}
.youtube-player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.producer-credit {
  font-size: 0.76rem;
  color: var(--dg-text-muted);
  margin: 0;
}

.player-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vinyl-icon {
  font-size: 1.6rem;
  color: #2a2a2a;
  line-height: 1;
}

/* ── 아티스트 링크 ── */
.artist-link {
  color: var(--dg-link);
  cursor: pointer;
  transition: color 0.2s;
}
.artist-link:hover {
  color: #e8c87e;
  text-decoration: underline;
}

/* ── 샘플 노트 ── */
.sample-note {
  border-top: 1px solid var(--dg-divider);
  padding-top: 16px;
  margin-top: 4px;
}
.sample-note p {
  font-size: 0.84rem;
  color: var(--dg-text-muted);
  line-height: 1.75;
  margin: 0;
  border-left: 2px solid #2a2a2a;
  padding-left: 14px;
}

/* ── 철학 섹션 ── */
.sampling-philosophy {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  border-top: 1px solid var(--dg-divider);
}

.philosophy-text {
  max-width: 720px;
  margin: 0 auto;
}

.philosophy-text p {
  font-size: 1rem;
  color: #a09888;            /* 기존 --dg-text-muted(#888)보다 약간 밝게 */
  line-height: 2;
  margin: 0 0 28px;
  word-break: keep-all;      /* 한글 단어 중간 줄바꿈 방지 */
}
.philosophy-text p:last-child { margin-bottom: 0; }


/* ── blockquote ── */
blockquote {
  position: relative;
  margin: 40px 0;
  padding: 2rem 2.5rem 2rem 4rem;
  border-left: 3px solid #c8a96e;
  background: rgba(200, 169, 110, 0.04);  /* 미세 골드 배경 */
  border-radius: 0 4px 4px 0;
  font-style: italic;
  line-height: 1.8;
}

/* 인용문 본문 — 명시도 높여서 .philosophy-text p 덮어쓰기 */
.philosophy-text blockquote p {
  font-size: 1.25rem;
  font-style: italic;
  color: #d4c09a;            /* 골드 계열, 본문보다 확연히 밝게 */
  line-height: 1.85;
  margin: 0;                 /* blockquote 안에서 여백 제거 */
  word-break: keep-all;
  letter-spacing: 0.01em;
}

/* 여는 따옴표 */
blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0.7rem;
  top: 0.4rem;
  font-size: 5rem;
  color: #c8a96e;
  opacity: 0.2;              /* 너무 튀지 않게 낮춤 */
  line-height: 1;
  font-family: Georgia, serif;
}

/* 닫는 따옴표 제거 — 깔끔한 레이아웃 유지 */
blockquote::after {
  content: none;
}

/* 출처 */
blockquote cite {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #786a58;
}


