/* Focused homepage-aligned polish for MP3 Editing and Birthday result states. */
body.mp3-editor-page {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0 0 32px;
  background: var(--bg);
}
body.mp3-editor-page::before { display: none; }
.mp3-editor-page .container {
  box-sizing: border-box;
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  margin: 26px auto 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border-2);
  border-radius: 22px;
  background: rgba(16, 16, 28, .64);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}
.mp3-editor-page .header { margin-bottom: 20px; }
.mp3-editor-page .logo { font-size: 48px; margin-bottom: 6px; }
.mp3-editor-page h1 {
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  line-height: 1.2;
  background: linear-gradient(135deg, #f0f0f8, #a78bfa 58%, #f093fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mp3-editor-page .subtitle { color: var(--text-muted); }
.mp3-editor-page .upload-area {
  padding: clamp(22px, 4vw, 30px) 18px;
  margin-bottom: 18px;
  border: 1.5px dashed rgba(167, 139, 250, .48);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  transition: border-color .18s ease, background .18s ease;
}
.mp3-editor-page .upload-area:hover,
.mp3-editor-page .upload-area.dragover {
  border-color: var(--purple-2);
  background: rgba(102, 126, 234, .08);
  transform: none;
  box-shadow: none;
}
.mp3-editor-page .upload-area::before { background: rgba(102, 126, 234, .12); }
.mp3-editor-page .upload-icon { font-size: 48px; }
.mp3-editor-page .upload-subtext { color: var(--text-muted); }
.mp3-editor-page .btn {
  min-height: 48px !important;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 10px 28px rgba(102, 126, 234, .2);
}
.mp3-editor-page #uploadBtn { min-height: 48px !important; height: auto; }
.mp3-editor-page .message.error {
  border: 1px solid rgba(248, 113, 113, .34);
  border-radius: 14px;
  background: rgba(248, 113, 113, .11);
  color: #fecaca;
}
.mp3-editor-page .message.success {
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 14px;
  background: rgba(16, 185, 129, .1);
  color: #a7f3d0;
}
.mp3-editor-page :is(button, a, input):focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 3px;
}

/* These pages include the shared sticky navbar, so use normal document flow. */
body.birthday-page,
body.birthday-not-found-page {
  display: block;
  align-items: initial;
  justify-content: initial;
  min-height: 100vh;
  padding: 0 0 32px;
  background: var(--bg);
  color: var(--text);
}
body.birthday-page::before,
body.birthday-not-found-page::before { display: none; }
.birthday-page .container {
  box-sizing: border-box;
  width: min(800px, calc(100% - 32px));
  max-width: 800px;
  margin: clamp(22px, 5vh, 42px) auto;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: rgba(16, 16, 28, .56);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}
.birthday-page .birthday-title {
  margin-bottom: clamp(16px, 3vw, 26px);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  color: #c4b5fd;
  background: linear-gradient(135deg, #f0f0f8, #a78bfa 55%, #f093fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: none;
}
.birthday-page :is(.countdown-box, .age-box, .wish-message, .footer-note) {
  border-color: var(--border-2);
  border-radius: 16px;
  background: rgba(22, 22, 38, .48);
  backdrop-filter: blur(10px);
}
.birthday-page :is(.countdown-box, .age-box) { padding: clamp(16px, 3vw, 22px); margin-bottom: 18px; }
.birthday-page .countdown-display { font-family: Inter, system-ui, sans-serif; font-size: clamp(1.6rem, 5vw, 2.3rem); font-variant-numeric: tabular-nums; }
.birthday-page .wish-button,
.birthday-not-found-page .btn-create {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font: 700 1rem/1.25 Inter, system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(102, 126, 234, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.birthday-page .wish-button:hover,
.birthday-not-found-page .btn-create:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(102, 126, 234, .27); }
.birthday-page :is(button, a):focus-visible,
.birthday-not-found-page :is(button, a):focus-visible { outline: 3px solid #c4b5fd; outline-offset: 3px; }
.birthday-not-found-page .error-container {
  box-sizing: border-box;
  width: min(540px, calc(100% - 32px));
  max-width: 540px;
  margin: clamp(22px, 5vh, 42px) auto 28px;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: rgba(16, 16, 28, .66);
  color: var(--text);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}
.birthday-not-found-page .error-icon { margin-bottom: 12px; color: #a78bfa; font-size: 56px; }
.birthday-not-found-page .error-container h1 { margin-bottom: 12px; font-size: clamp(1.35rem, 4.5vw, 1.8rem); }
.birthday-not-found-page .error-message { margin-bottom: 20px; color: var(--text-muted); font-size: 1rem; }
@media (max-width: 600px) {
  .mp3-editor-page .container { margin-top: 18px; }
  .mp3-editor-page .upload-area { padding: 22px 16px; }
  .birthday-page .container { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .mp3-editor-page *, .birthday-page *, .birthday-not-found-page * { scroll-behavior: auto; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
