/* ============================================
   MusicKit 공통 상단 바 — 앱·도구·약관 페이지
   구조: 로고 / 현재 페이지(누르면 다른 앱·도구 메뉴) … 페이지별 버튼
   페이지마다 색 토큰 이름이 달라 색은 이 파일 안에서 정한다
   ============================================ */
.mk-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  box-sizing: border-box;
  flex-shrink: 0;
  background: rgba(14, 14, 15, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #2a2a30;
  color: #f0f0f0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
}
.mk-bar * { box-sizing: border-box; }
.mk-bar a { color: inherit; text-decoration: none; }

.mk-bar__logo { font-weight: 800; font-size: 16px; letter-spacing: -0.03em; white-space: nowrap; }
.mk-bar__logo span { color: #ff764d; }
.mk-bar__sep { color: #4a4a52; }

/* 현재 페이지 + 전환 메뉴 */
.mk-bar__switch { position: relative; min-width: 0; }
.mk-bar__switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.mk-bar__switch summary::-webkit-details-marker { display: none; }
.mk-bar__switch summary::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid #a1a1a6; border-bottom: 1.5px solid #a1a1a6; transform: rotate(45deg); }
.mk-bar__switch summary:hover,
.mk-bar__switch[open] summary { background: #1f1f23; }
.mk-bar__switch summary:focus-visible { outline: 2px solid #ff764d; outline-offset: 2px; }
.mk-bar__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 6px; display: grid; background: #17171a; border: 1px solid #2a2a30; border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .75); }
.mk-bar__menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border-radius: 6px; color: #a1a1a6; font-size: 14px; white-space: nowrap; }
.mk-bar__menu a:hover { background: #1f1f23; color: #f0f0f0; }
.mk-bar__menu a[aria-current="page"] { color: #f0f0f0; font-weight: 600; }
.mk-bar__menu a[aria-current="page"]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff764d; }
.mk-bar__menu hr { border: 0; border-top: 1px solid #2a2a30; margin: 6px 4px; }

/* 페이지별 버튼 자리 (언어 전환 등) */
.mk-bar__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mk-bar__lang { font: inherit; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 11px; border: 0; border-radius: 99px; background: #1f1f23; color: #a1a1a6; cursor: pointer; }
.mk-bar__lang:hover { color: #f0f0f0; }
.mk-bar__lang:focus-visible { outline: 2px solid #ff764d; outline-offset: 2px; }

@media (max-width: 400px) {
  .mk-bar { padding: 0 12px; gap: 4px; }
}
