* { box-sizing: border-box; }
:root {
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f6f7f9;
}
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 190px;
}
button, input { font: inherit; }

.app-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 18px 24px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .14em;
  color: #6b7280;
  font-weight: 700;
}
h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: white;
  font-size: 22px;
}
.search-wrap {
  margin-top: 18px;
}
.search-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: white;
  padding: 0 15px;
  outline: none;
}
.search-wrap input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156,163,175,.15);
}
.status-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: white;
}
.status-card strong {
  display: block;
  margin-bottom: 6px;
}
.status-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
}
.library-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 24px 2px 10px;
}
.library-head h2 {
  margin: 0;
  font-size: 17px;
}
.library-head span {
  color: #6b7280;
  font-size: 13px;
}
.track-list {
  min-height: 240px;
}
.empty-state {
  border: 1px dashed #d1d5db;
  border-radius: 18px;
  padding: 42px 24px;
  text-align: center;
  background: rgba(255,255,255,.55);
}
.empty-icon {
  font-size: 30px;
  margin-bottom: 10px;
}
.empty-state p {
  margin: 0 0 5px;
  font-weight: 700;
}
.empty-state small {
  color: #6b7280;
  line-height: 1.5;
}

.player {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 720px);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid #e5e7eb;
}
.now-playing {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.now-playing small {
  display: block;
  color: #6b7280;
  margin-bottom: 2px;
}
.now-playing strong {
  display: block;
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#speedLabel {
  color: #4b5563;
  font-size: 13px;
}
#progress {
  width: 100%;
  margin: 12px 0 2px;
}
.time-row {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 11px;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-top: 8px;
}
.controls button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  min-width: 48px;
  height: 42px;
}
.controls .play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #111827;
  color: white;
  font-size: 18px;
}
.controls button:disabled {
  opacity: .35;
}

@media (min-width: 721px) {
  body { background: #eef0f3; }
  .app-shell {
    min-height: calc(100vh - 180px);
    background: #f9fafb;
  }
}
