/* ================= MobileMusic — CSS ================= */
/* Mobile-optimized styles for portrait mode */
:root {
  --bg: #121212;
  --bg-elev: #181818;
  --bg-elev-2: #1a1a1a;
  --text: #e5e5e5;
  --muted: #b3b3b3;
  --white: #ffffff;
  --accent: #1db954;
  --accent-2: #1ed760;
  --border: #2a2a2a;
  --range-bg: #2b2b2b;
  --top-h: 56px;
  --bottom-h: 110px;
  --radius: 12px;
  
  /* iOS safe area insets */
  --sat: env(safe-area-inset-top);
  --sar: env(safe-area-inset-right);
  --sab: env(safe-area-inset-bottom);
  --sal: env(safe-area-inset-left);
}

/* ========== Base ========== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

button,
a,
[role="button"] {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

/* ========== App frame ========== */
.app {
  display: grid;
  grid-template-rows: var(--top-h) 1fr var(--bottom-h);
  height: 100vh;
  height: 100dvh; /* Use dynamic viewport height on mobile */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Topbar - mobile optimized */
.topbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 0 12px;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(
    90deg,
    #1db954 0%,
    rgba(29, 185, 84, 0.5) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(
    270deg,
    #1db954 0%,
    rgba(29, 185, 84, 0.5) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  position: relative;
  z-index: 1;
}

.topbar-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  border-radius: 4px;
  justify-self: end;
}

/* Hamburger button */
.hamburger-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 101;
  padding: 0;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.hamburger-btn:active {
  background: var(--bg-elev-2);
}
.hamburger-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  pointer-events: none;
}

/* Navigation menu overlay */
.nav-menu {
  position: fixed;
  top: var(--top-h);
  left: 0;
  width: 260px;
  height: calc(100vh - var(--top-h));
  height: calc(100dvh - var(--top-h));
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
  padding-left: env(safe-area-inset-left);
}
.nav-menu.is-open {
  transform: translateX(0);
}

.nav-menu-content {
  padding: 16px 0;
  padding-top: max(16px, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  font-size: 15px;
}
.nav-item:active {
  background: var(--bg-elev-2);
}
.nav-item.is-active {
  background: var(--bg-elev-2);
  color: var(--accent);
}
.nav-item.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  font-weight: 500;
}

/* Main content */
.main {
  min-height: 0;
  overflow: hidden;
}

/* Pages stack */
.pages {
  height: 100%;
  overflow: hidden;
}
.page {
  display: none;
  height: 100%;
  min-height: 0;
  position: relative;
}
.page.is-active {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Subpage navigation within a page */
.subpage {
  display: none;
  height: 100%;
}
.page.is-active .subpage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.page.is-active .subpage.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* ========== Recommended Songs Page ========== */
#page-recommended.is-active {
  display: block;
}

.recommended-container {
  padding: 20px 16px;
  overflow-y: auto;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.recommended-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #fff;
}

/* Playlist grid - SINGLE COLUMN for mobile */
.playlists-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  touch-action: auto;
  pointer-events: auto;
}

/* Playlist card */
.playlist-card {
  display: flex;
  width: 100%;
  height: 100px;
  background: var(--bg-elev);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.playlist-card:active {
  background: #222;
  transform: scale(0.98);
}

.card-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: #282828;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image img.visible {
  opacity: 1;
  transform: translateX(0);
}

.card-image img.slide-out-left {
  opacity: 0;
  transform: translateX(-100%);
}

.card-image img.slide-in-from-right {
  opacity: 0;
  transform: translateX(100%);
}

.card-content {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-description {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 6px 0;
}

.card-count {
  font-size: 10px;
  color: #999;
  font-weight: 500;
  margin-top: auto;
}

.playlist-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(
    to top,
    rgba(90, 20, 20, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.loading-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

/* ========== Select Songs Page ========== */
.page-top {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

/* Filter Songs subpage - anchor buttons to bottom, space filters evenly */
#subpage-filter {
  padding: 16px;
}

#subpage-filter .page-top {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#subpage-filter .page-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

#subpage-filter .filters-column {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}

#subpage-filter .field {
  gap: 8px;
  flex-shrink: 0;
}

#subpage-filter .field input,
#subpage-filter .field select {
  height: 40px;
}

#subpage-filter .filters-actions {
  margin-top: auto;
  padding-top: 16px;
  flex-shrink: 0;
}

.page-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

/* STACKED filters for mobile */
.filters-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field select {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  font-size: 16px; /* Prevent zoom on iOS */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.field select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23b3b3b3" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  background-color: var(--bg-elev);
}

.field input::placeholder {
  color: #777;
}

/* Typeahead */
.field-with-suggest {
  position: relative;
}
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 200px;
  overflow: auto;
  z-index: 20;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}
.suggest button:active,
.suggest button.is-active {
  background: #222;
}

/* Filter actions - horizontal row */
.filters-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn:active {
  background: #202020;
}
.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #000;
  font-weight: 700;
}
.btn-primary:active {
  background: var(--accent-2);
}

/* Page body / table wrapper */
.page-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: pan-y;
}

.table-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
  padding: 0 16px 12px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pan-x;
  overscroll-behavior: contain;
}

/* Songs table - ONLY Song and Movie columns */
.songs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.songs-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-elev);
}

.songs-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--bg-elev);
  color: #d8d8d8;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.songs-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.songs-table tbody tr:active {
  background: rgba(255, 255, 255, 0.05);
}

.col-check {
  width: 40px;
  text-align: center;
}

.is-sortable .caret {
  display: none;
}
.is-sortable.is-sorted .caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  margin-left: 4px;
  transform: translateY(1px);
}
.is-sortable.is-sorted.is-desc .caret {
  border-top: none;
  border-bottom: 5px solid var(--muted);
}

.col-resizer {
  display: none; /* No resizing on mobile */
}

/* Custom checkbox */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #222;
  cursor: pointer;
  position: relative;
}
input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: transparent;
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: 2px solid #000;
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
}

/* Page bottom */
.page-bottom {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
}

.table-meta-left {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.page-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Select Songs subpage - 3 buttons in one row */
#subpage-select .page-actions {
  grid-template-columns: auto 1fr auto;
  gap: 8px;
}

#subpage-select .page-actions .btn {
  white-space: nowrap;
}

.page-actions .btn {
  width: 100%;
  font-size: 13px;
  padding: 0 10px;
}

/* ========== Song Info Page ========== */
#page-songInfo {
  grid-template-rows: 1fr;
}

.songinfo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px;
  min-height: 0;
  position: relative;
  background: linear-gradient(
    0deg,
    rgba(90, 20, 20, 0.35) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  overflow: hidden;
}

/* ========== Now Playing Page ========== */
#page-now {
  grid-template-rows: 1fr;
}

.np-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  min-height: 0;
  position: relative;
  background: linear-gradient(
    0deg,
    rgba(90, 20, 20, 0.35) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  overflow: hidden;
}

/* Song card - takes up almost entire Now Playing page */
.song-card {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 12px;
  background: rgba(24, 24, 24, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.art-wrap {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 1; /* Wider than tall to reduce vertical space */
  max-height: 67%; /* Limit to 67% of card height */
  background: #0b0b0b;
}

#cardArt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-meta {
  padding: 16px 12px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.card-songtitle {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.card-movie {
  font-size: 14px;
  font-weight: 600;
  color: #d6d6d6;
}

.card-composer {
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 6px;
  color: #d6d6d6;
}

.card-line {
  font-size: 11px;
  color: #c7c7c7;
}

.hidden {
  display: none !important;
}

/* Now Playing List - fills the Now Playing page */
.nplist {
  width: 100%;
  height: 100%;
  background: rgba(24, 24, 24, 0.35);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nplist-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.np-title {
  font-weight: 700;
  font-size: 14px;
  color: #eaeaea;
}

.badge {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: #bfbfbf;
}

#nplist {
  list-style: none;
  margin: 0;
  padding: 6px;
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

#nplist li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
}

#nplist li:active {
  background: rgba(255, 255, 255, 0.04);
}

#nplist li.active {
  outline: 2px solid var(--accent);
  background: rgba(29, 185, 84, 0.08);
}

.np-art {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.np-movie {
  font-size: 11px;
  color: var(--muted);
}

.shuffle-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
}
.shuffle-btn:active {
  background: var(--accent-2);
  transform: scale(0.95);
}
.shuffle-icon {
  width: 14px;
  height: 14px;
  display: block;
}

/* ========== Bottom Controls - Mobile ========== */
.bottombar {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  
  /* Add bottom fade for transparency - extended fade area */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 83%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 83%, rgba(0,0,0,0) 100%);
}

.bottombar > .pc {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 56px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "progress"
    "controls";
  row-gap: 0;
  padding: 8px 16px; /* Reduced top/bottom padding to bring controls higher */
}

/* NO corner images on mobile */
.pc-corner-left,
.pc-corner-right,
.pc-now {
  display: none !important;
}

/* Transport controls - centered */
.pc-controls {
  grid-area: controls;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #eaeaea;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.icon-btn:active {
  background: #212121;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
}
.play-btn:active {
  background: var(--accent-2);
  transform: scale(0.95);
}
.play-btn .icon-play {
  width: 22px;
  height: 22px;
  fill: #000;
}
.play-btn .icon-pause {
  display: none;
  width: 20px;
  height: 20px;
  fill: #000;
}

/* Progress bar - full width */
.pc-progress {
  grid-area: progress;
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 44px 40px;
  align-items: center;
  gap: 8px;
}

/* Page toggle button in progress bar */
.page-toggle-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.page-toggle-btn:active {
  background: var(--bg-elev-2);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.page-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.time {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.pc-progress input[type="range"] {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  outline: none;
  background: var(--range-bg);
  cursor: pointer;
}

.pc-progress input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.2);
}

/* Volume controls removed for mobile */

#btnMute .vol-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  fill: #cfcfcf;
}

#btnMute .vol-mute {
  display: none;
}

#btnMute.is-muted .vol-on {
  display: none;
}

#btnMute.is-muted .vol-mute {
  display: block;
  fill: #ffd74a;
}

/* ========== Message Box ========== */
.hm-msgbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: hmFadeIn 0.2s forwards;
  padding: 20px;
}

@keyframes hmFadeIn {
  to {
    opacity: 1;
  }
}

.hm-msgbox {
  background: #282828;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  transform: scale(0.9);
  animation: hmPopIn 0.2s forwards;
}

@keyframes hmPopIn {
  to {
    transform: scale(1);
  }
}

.hm-msgbox-title {
  background: linear-gradient(135deg, #1db954 0%, #1ed760 50%, #1db954 100%);
  color: #fff;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hm-msgbox-title::before {
  content: "♪";
  font-size: 18px;
}

.hm-msgbox-content {
  padding: 20px 16px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.hm-msgbox-buttons {
  padding: 0 16px 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hm-msgbox-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 70px;
}

.hm-msgbox-btn-primary {
  background: #1db954;
  color: #fff;
}

.hm-msgbox-btn-primary:active {
  background: #1ed760;
}

.hm-msgbox-btn-secondary {
  background: #404040;
  color: #fff;
}

.hm-msgbox-btn-secondary:active {
  background: #535353;
}
