/* ============================================================
   hustle muscle records — test2 (design-driven rebuild)
   단일 스타일시트. 디자인 수치(17/34/68px) 기반.
   ============================================================ */

:root {
  --fg: #000000;
  --bg: #ffffff;
  --accent: #c75302;
  --active: #0000ff;
  --u: 17px;        /* 기본 간격 단위 */
  --u2: 34px;
  --u4: 68px;
  --sidebar-w: 200px;
  --page-max: 1440px;
  --content-max: 590px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 12px;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(199, 83, 2, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--active);
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
}

/* ── 레이아웃 (좌측 정렬, 최대 1440px) ───────────────────────── */

.wrapper {
  display: flex;
  max-width: var(--page-max);
  height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.content-area {
  flex: 1;
  padding: 20px 0 calc(var(--u4) * 3) 20px;
  height: 100vh;
  overflow-y: auto;
}

/* 동적 로드 영역 */
.load-wrap {
  padding-top: var(--u);
  min-height: 60vh;
}

.loading {
  color: #777;
}

/* ── 사이드바 ────────────────────────────────────────────────── */

.slogan {
  font-weight: 700;
}

.nav-item {
  display: block;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--active);
  text-decoration: underline;
}

.sub-nav {
  padding: var(--u) 0 var(--u) var(--u);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}

.lang-btn.active {
  color: var(--active);
}

.lang-arrow {
  order: 2;
}

/* 다국어 토글 (현재 영문만) */
.en { display: block; }
.ko { display: none; }

/* ── 공통: 섹션 화살표 라벨 ──────────────────────────────────── */

.arrow {
  color: var(--fg);
}

/* ── home: release note ─────────────────────────────────────── */

.release-list {
  display: flex;
  gap: var(--u);
  padding: var(--u) 0;
}

.release-list .col {
  display: flex;
  flex-direction: column;
}

.contact {
  white-space: pre-line;
}

/* ── release list (2) : mini card ──────────────────────────── */

.release-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--u) 0;
}

.release-mini-card {
  display: flex;
  align-items: stretch;
  gap: var(--u);
}

.release-mini-cover {
  height: calc(12px * 1.5 * 2);
  width: auto;
  flex-shrink: 0;
}

.release-mini-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.release-mini-title {
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.release-mini-date {
  font-size: 12px;
  line-height: 1.5;
  color: #999;
}

/* ── artist page ────────────────────────────────────────────── */

.artist-page {
  display: flex;
  flex-direction: column;
  gap: var(--u4);
}

.artist-profile {
  display: flex;
  flex-direction: column;
}

.profile-body {
  display: flex;
  flex-direction: column;
  gap: var(--u);
  padding-top: var(--u2);
}

.artist-info {
  max-width: var(--content-max);
}

.artist-info p + p {
  margin-top: 1.5em;
}

.profile-img {
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
}

/* media */
.media-section {
  display: flex;
  flex-direction: column;
}

.media-body {
  display: flex;
  flex-direction: column;
  gap: var(--u2);
  padding-top: var(--u2);
  max-width: var(--content-max);
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-links a {
  display: flex;
  gap: var(--u);
  align-items: baseline;
  text-decoration: none;
  color: var(--fg);
}

.media-links a:hover {
  color: var(--active);
}

.media-source {
  font-size: 10px;
  color: #999;
  flex-shrink: 0;
}

.media-title {
  font-size: 12px;
}

/* release list (album card) */
.release-section {
  display: flex;
  flex-direction: column;
  gap: var(--u2);
}

.release-card {
  display: flex;
  gap: var(--u);
  align-items: flex-end;
}

.album-cover {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.release-right {
  display: flex;
  gap: var(--u);
}

.release-card-info {
  display: flex;
  flex-direction: column;
  gap: var(--u);
}

.release-head {
  display: flex;
  gap: var(--u);
  align-items: center;
}

.release-credits p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.release-format {
  display: inline-flex;
  align-items: center;
  border: 0.5px solid #999;
  border-radius: 22px;
  padding: 0 6px;
  white-space: nowrap;
  font-size: 10px;
  align-self: stretch;
  max-height: 18px;
  box-sizing: border-box;
  color: #999;
}

.release-date {
  color: #999;
}

.release-meta {
  display: flex;
  flex-direction: column;
  gap: var(--u);
}

/* ── 푸터 ────────────────────────────────────────────────────────── */

.about-toggle {
  display: none;
}

.about-panel {
  position: fixed;
  bottom: calc(var(--u) + 36px);
  right: 20px;
  background: var(--bg);
  border: 0.5px solid var(--fg);
  padding: var(--u);
  max-width: 280px;
  font-size: 10px;
  line-height: 1.6;
  z-index: 99;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-panel p {
  margin: 0 0 6px;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-toggle:checked ~ .about-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-footer {
  position: fixed;
  bottom: var(--u);
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: var(--u);
  z-index: 100;
  pointer-events: auto;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.site-footer.footer-hidden {
  opacity: 0;
  pointer-events: none;
}

.footer-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.footer-about-hint {
  font-size: 8px;
  color: #999;
}

.footer-text {
  font-size: 12px;
  color: var(--fg);
  padding-bottom: 2px;
}

.footer-logo {
  width: 24px;
  height: auto;
}

/* ── 사이드바 / about 외부 클릭 닫기 오버레이 ──────────────────── */

.sidebar-overlay,
.about-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  cursor: default;
}

#sidebar-toggle:checked ~ .sidebar-overlay {
  display: block;
  z-index: 899;
}

#about-toggle:checked ~ .about-overlay {
  display: block;
  z-index: 98;
}

/* ── 이미지 오버레이 ─────────────────────────────────────────────── */

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#overlay.active {
  display: flex;
}

#overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
}

#overlay-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

/* ── 반응형: 850px 이하 → 햄버거 드로어 ─────────────────────── */

.sidebar-toggle,
.hamburger {
  display: none;
}

#sidebar-toggle + .hamburger .chevron-left {
  display: none;
}
#sidebar-toggle:checked + .hamburger .chevron-right {
  display: none;
}
#sidebar-toggle:checked + .hamburger .chevron-left {
  display: block;
}

@media (max-width: 600px) {
  .profile-img {
    max-height: none;
    width: 100%;
  }

  .release-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-cover {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 850px) {

  .hamburger {
    display: flex;
    position: fixed;
    top: 16px;
    left: 16px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
  }

  .hamburger svg {
    width: 24px;
    height: 24px;
    color: #333;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 900;
    padding-top: 60px;
  }

  #sidebar-toggle:checked ~ .wrapper .sidebar {
    transform: translateX(0);
  }

  .content-area {
    padding: 60px 16px calc(var(--u4) * 3);
  }

  .site-footer {
    right: 16px;
  }
}
