/* Discography list */

html.page-discography {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.disco-filters {
  position: sticky;
  top: var(--site-header-h);
  z-index: 35;
  margin: 0 -1rem 1.25rem;
  padding: 0.5rem 1rem 0.75rem;
  background: #fff;
}

.disco-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 0.375rem 0.875rem;
  font-size: 13px;
  font-weight: 500;
  color: #737373;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover:not(.is-active) {
  border-color: #111;
  color: #111;
}

.filter-btn.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
  font-weight: 600;
}

#tagFilters {
  margin-top: 0.625rem;
  display: flex;
  min-height: 20px;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
}

.tag-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #a3a3a3;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s ease;
}

.tag-btn:hover:not(.is-active) {
  color: #000;
}

.tag-btn.is-active {
  font-weight: 600;
  color: #000;
}

/* Lists */
.album-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.album-empty {
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #a3a3a3;
}

.album-list--cover .album-empty {
  grid-column: 1 / -1;
}

/* Cover grid — 국내앨범 / 해외발매: mobile 2-col, PC 3-col (same as musical) */
.album-list--cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .album-list--cover {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}

.album-card--cover {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  border-radius: 0.75rem;
  background: #fff;
  color: inherit;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .album-card--cover:hover {
    transform: translateY(-2px);
  }
}

.album-card--cover .album-cover {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  background: #f5f5f5;
}

.album-card--cover .album-card-body {
  min-width: 0;
  padding: 0.625rem 0.75rem 0.75rem;
}

.album-card--cover .album-card-title {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.album-card--cover .album-card-meta {
  margin: 0.25rem 0 0;
  font-size: 11px;
  color: #888;
}

.album-card--cover .album-card-song {
  margin: 0.375rem 0 0;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
  overflow: hidden;
  font-size: 11px;
  color: #262626;
}

.album-card--cover .album-card-with {
  margin: 0.25rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #737373;
}

/* Magazine timeline — 국내기타 */
.album-list--timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.album-list--timeline::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: calc(3.5rem + 0.5rem + 4px);
  width: 1px;
  background: #d4d4d4;
}

.album-card--timeline {
  display: grid;
  grid-template-columns: 3.5rem 8px 52px minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: center;
  min-width: 0;
  padding: 0.875rem 0;
  border-bottom: 1px solid #f5f5f5;
  color: inherit;
}

.timeline-date {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #737373;
  white-space: nowrap;
  text-align: right;
}

.timeline-rail {
  position: relative;
  align-self: stretch;
  width: 8px;
}

.timeline-rail::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
  transform: translate(-50%, -50%);
}

.album-card--timeline .album-cover {
  display: block;
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  flex-shrink: 0;
  border-radius: 0.25rem;
  object-fit: cover;
  background: #f5f5f5;
}

.album-card--timeline .album-card-body {
  min-width: 0;
}

.album-card--timeline .album-card-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.album-card--timeline .album-card-meta {
  margin: 0.125rem 0 0;
  font-size: 11px;
  color: #888;
}

.album-card--timeline .album-card-song {
  margin: 0.25rem 0 0;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
  overflow: hidden;
  font-size: 11px;
  color: #262626;
}

.album-card--timeline .album-card-with {
  margin: 0.125rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #737373;
}

.album-card-song .song-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.title-badge {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid #d4d4d4;
  padding: 1px 0.375rem;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #737373;
}

.disco-hint {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.625;
  color: #a3a3a3;
}

@media (min-width: 768px) {
  .album-card--timeline {
    grid-template-columns: 6.5rem 12px 64px minmax(0, 1fr);
    column-gap: 0.75rem;
  }

  .album-list--timeline::before {
    left: calc(6.5rem + 0.75rem + 5px);
  }

  .timeline-date {
    font-size: 14px;
    letter-spacing: 0.04em;
    text-align: right;
  }

  .timeline-rail {
    width: 12px;
  }

  .album-card--timeline .album-cover {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
  }
}
