:root {
  --bg: #fcf8ef;
  --panel: rgba(255, 253, 248, 0.82);
  --panel-strong: rgba(255, 250, 242, 0.95);
  --ink: #1f1a17;
  --muted: #65594f;
  --accent: #ff7a18;
  --accent-strong: #d74f00;
  --line: rgba(53, 39, 30, 0.1);
  --shadow: 0 24px 60px rgba(116, 63, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 122, 0.48), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 143, 91, 0.28), transparent 28%),
    linear-gradient(180deg, #fff6e8 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
}

body {
  padding: 20px 16px 40px;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: 112px;
  left: -48px;
  width: 160px;
  height: 160px;
  background: rgba(255, 165, 61, 0.16);
}

.ambient-right {
  right: -36px;
  bottom: 120px;
  width: 180px;
  height: 180px;
  background: rgba(255, 117, 24, 0.12);
}

.topbar,
.panel {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.topbar h1,
.hero-panel h2,
.panel h2,
.panel h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

.topbar h1 {
  font-size: 1.85rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy h2 {
  font-size: 2.2rem;
  line-height: 1.05;
  margin-bottom: 12px;
}

.body-copy,
.helper-text,
.muted-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.helper-text,
.error-text {
  min-height: 20px;
  margin-top: 8px;
  font-size: 0.92rem;
}

.error-text {
  color: #b33232;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  width: 100%;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffb347 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 28px rgba(215, 79, 0, 0.2);
}

.ghost-button {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(90, 69, 49, 0.12);
}

.primary-button:active,
.ghost-button:active {
  transform: translateY(1px) scale(0.99);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(77, 61, 48, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 15px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.align-start {
  align-items: flex-start;
}

.compact-gap {
  margin-bottom: 0;
}

.welcome-panel {
  display: grid;
  gap: 16px;
}

.playlist-list,
.track-list {
  display: grid;
  gap: 12px;
}

.playlist-card,
.track-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(80, 60, 46, 0.12);
  background: var(--panel-strong);
}

.playlist-card {
  display: grid;
  gap: 10px;
}

.playlist-card button {
  justify-self: start;
}

.playlist-card-header,
.track-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.meta-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.12);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.player-panel {
  background: linear-gradient(180deg, rgba(35, 26, 19, 0.96) 0%, rgba(64, 41, 26, 0.92) 100%);
  color: white;
}

.player-panel .eyebrow,
.player-panel .muted-text,
.player-panel label,
.player-panel .body-copy {
  color: rgba(255, 245, 236, 0.84);
}

.now-playing {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.record-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd77a, #ff7a18);
  color: #2f1808;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.now-label {
  margin: 0 0 4px;
  color: rgba(255, 240, 223, 0.66);
  font-size: 0.88rem;
}

.compact-form input,
.compact-form textarea {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
}

.track-card {
  display: grid;
  gap: 10px;
}

.track-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 122, 24, 0.12);
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

@media (min-width: 700px) {
  body {
    padding-top: 28px;
  }

  .panel {
    padding: 24px;
  }

  .hero-panel {
    min-height: 56vh;
  }
}