/* ==========================================================================
   Mp3Haat 2.1 — light refresh of the classic design + night mode.
   The original layout and colours come from css/main.css; this file only
   polishes a few details and adds the dark palette.
   ========================================================================== */

/* ---------- Light polish (keeps the classic look) ---------- */

/* Latin text stays Arial; Bangla falls through to Hind Siliguri. */
body, input, select, textarea, button {
  font-family: Arial, 'Hind Siliguri', Helvetica, sans-serif;
}

/* Search: blue button with the search icon (was a grey square). */
.site-search input.search-btn,
.site-search input[type="submit"].search-btn {
  background: #387afe url(../img/search.svg) no-repeat center;
  background-size: 18px;
  border: 0;
  border-radius: 4px;
  padding: 0;
}
.site-search input.search-btn:hover { background-color: #518bff; }
.site-search input.search { border-radius: 4px; }

/* Song list: a little more breathing room and an easier tap target. */
.blog-posts .post-title a,
.blog-posts h3.post-title a { display: block; padding: 2px 0; }

/* Lyrics: normal font instead of typewriter. */
.lyrics pre {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Softer corners on boxes. */
#middle-widgets, .post-body.entry-content, #track-info { border-radius: 6px; }
#track-info { overflow: hidden; }

/* Keyboard focus that is easy to see. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #f2a93b;
  outline-offset: 2px;
}

/* ---------- Night mode toggle (in the blue menu bar) ---------- */
.main-nav { position: relative; padding-right: 52px; }
.mh-theme-toggle {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: #0b3fc0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  cursor: pointer;
}
.mh-theme-toggle:hover { background: #d858da; border-color: #d858da; }
.mh-theme-toggle .mh-ico-sun { display: none; }
[data-theme="dark"] .mh-theme-toggle .mh-ico-sun { display: block; }
[data-theme="dark"] .mh-theme-toggle .mh-ico-moon { display: none; }
@media (max-width: 767px) {
  .mh-theme-toggle { top: 6px; width: 34px; height: 34px; }
}

/* ==========================================================================
   Night mode
   ========================================================================== */
[data-theme="dark"] { color-scheme: dark; }

[data-theme="dark"] body {
  background: #0c0d10 none;
  color: #e6e4df;
}
[data-theme="dark"] #container,
[data-theme="dark"] .container,
[data-theme="dark"] #buttons-wrapper,
[data-theme="dark"] .entry-inner,
[data-theme="dark"] #track-info,
[data-theme="dark"] #track-info td,
[data-theme="dark"] .sm2-360ui {
  background-color: #16181c;
}
[data-theme="dark"] .sm2-360ui { background-color: transparent; }

/* Grey boxes */
[data-theme="dark"] #middle-widgets,
[data-theme="dark"] .post-body.entry-content,
[data-theme="dark"] .post-labels,
[data-theme="dark"] .site-search {
  background-color: #22252b;
  border-color: #33373f;
}

/* Text */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .title,
[data-theme="dark"] .post-title,
[data-theme="dark"] .page-title,
[data-theme="dark"] #middle-widgets h2 {
  color: #f3f1ec;
}
[data-theme="dark"] .post-body,
[data-theme="dark"] .post-body p,
[data-theme="dark"] .post-body p a,
[data-theme="dark"] #post-description,
[data-theme="dark"] #track-info td,
[data-theme="dark"] .lyrics pre,
[data-theme="dark"] .lyrics-content,
[data-theme="dark"] .counter,
[data-theme="dark"] small,
[data-theme="dark"] #credits {
  color: #d9d6cf;
}
[data-theme="dark"] .edit-link a,
[data-theme="dark"] .post-labels a:hover,
[data-theme="dark"] a.home-link:hover { color: #ffffff; }

/* Links in content, lists, sidebar and footer: lighter blue for contrast. */
[data-theme="dark"] .blog-posts a,
[data-theme="dark"] .post-title a,
[data-theme="dark"] #track-info a,
[data-theme="dark"] .related-songs a,
[data-theme="dark"] .sidebar-wrapper a,
[data-theme="dark"] .widget-area a,
[data-theme="dark"] #upper-footer a,
[data-theme="dark"] #credits a,
[data-theme="dark"] .no-results a {
  color: #7fb0ff;
}
[data-theme="dark"] .blog-posts a:hover,
[data-theme="dark"] .post-title a:hover,
[data-theme="dark"] .sidebar-wrapper a:hover,
[data-theme="dark"] #upper-footer a:hover { color: #b9d3ff; }
[data-theme="dark"] .post-labels a { color: #ffb066; }

/* Keep the coloured buttons readable (they have their own backgrounds). */
[data-theme="dark"] a#download,
[data-theme="dark"] #buttons a,
[data-theme="dark"] .video-link a,
[data-theme="dark"] .share-icon,
[data-theme="dark"] a.home-link,
[data-theme="dark"] .main-nav a,
[data-theme="dark"] .navbar-bottom a,
[data-theme="dark"] .haatup a { color: #fff; }
[data-theme="dark"] .haatup {
  background: #22252b;
  border-color: #33373f;
}
[data-theme="dark"] .haatup a { color: #7fb0ff; }

/* Lines and borders */
[data-theme="dark"] .ver-line { background-color: #2a2d34; }
[data-theme="dark"] td,
[data-theme="dark"] td.table-title,
[data-theme="dark"] .blog-posts .post,
[data-theme="dark"] .blog-posts article,
[data-theme="dark"] .sidebar-wrapper,
[data-theme="dark"] .widget-area,
[data-theme="dark"] .widget h2,
[data-theme="dark"] .post-title,
[data-theme="dark"] .playlist,
[data-theme="dark"] hr {
  border-color: #2f333a !important;
}

/* Form fields */
[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #16181c;
  color: #e6e4df;
  border-color: #3a3e46;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #9a968e; }

/* Message box (yellow) */
[data-theme="dark"] .haat {
  background-color: #2a2915;
  border-color: #4a4826;
  color: #e9e4a8;
}
[data-theme="dark"] .haat font[color="green"] { color: #7ddc7d; }

/* Pager */
[data-theme="dark"] .displaypageNum a,
[data-theme="dark"] .showpage a,
[data-theme="dark"] .page-numbers {
  background-color: #22252b;
  color: #d9d6cf;
}
[data-theme="dark"] .page-numbers.current,
[data-theme="dark"] .pagecurrent { background: #359bed; color: #fff; }

/* Images: slightly dimmed so they don't glare at night. */
[data-theme="dark"] .post-body img,
[data-theme="dark"] #track-info img { filter: brightness(.92); }

/* Song page details */
[data-theme="dark"] .single-post .entry-inner { background-color: #16181c; }
[data-theme="dark"] #buttons-wrapper { border-color: #2f333a; }
[data-theme="dark"] .table-title h4,
[data-theme="dark"] .post-labels,
[data-theme="dark"] .post-labels .tags-links { color: #f3f1ec; }
[data-theme="dark"] .lyrics.lyrics-less:after {
  background-image: linear-gradient(to bottom, transparent, #16181c);
}
[data-theme="dark"] .lyrics-button { color: #7fb0ff; }
[data-theme="dark"] .lyrics-button svg { fill: currentColor; }
[data-theme="dark"] .blog-posts a.share-icon,
[data-theme="dark"] .blog-posts a#download,
[data-theme="dark"] .blog-posts #buttons a,
[data-theme="dark"] .blog-posts .video-link a,
[data-theme="dark"] .blog-posts a.home-link { color: #fff; }
[data-theme="dark"] .lyrics-content h2 strong { color: #f3f1ec; }

/* ==========================================================================
   Up next + autoplay
   ========================================================================== */
.upnext {
  margin: 16px 0 8px;
  padding: 14px;
  background: #f4f6fb;
  border: 1px solid #dde3ef;
  border-radius: 8px;
  text-align: left;
}
.upnext__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.upnext__title { margin: 0; padding: 0; border: 0; font-size: 18px; color: #111; }
.upnext__switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 2px;
  background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: #444;
}
.upnext__track { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #b9c0cc; transition: background .2s; }
.upnext__knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.upnext__switch[aria-checked="true"] .upnext__track { background: #0353f1; }
.upnext__switch[aria-checked="true"] .upnext__knob { transform: translateX(16px); }

.upnext__card, .upnext__row {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: #111;
  border-radius: 6px;
}
.upnext__card { padding: 8px; background: #fff; border: 1px solid #dde3ef; }
.upnext__card:hover, .upnext__row:hover { background: #e8eefc; }
.upnext__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.upnext__song { font-weight: 600; font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e62d0; }
.upnext__artist { font-size: 13px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext__play {
  width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #0353f1; color: #fff;
}
.upnext__list { list-style: none; margin: 8px 0 0; padding: 0; }
.upnext__list li { margin: 0; padding: 0; border: 0; }
.upnext__row { padding: 6px 8px; }
.upnext__row .un-tile { width: 40px; height: 40px; font-size: 18px; }

.un-tile {
  width: 52px; height: 52px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; overflow: hidden; font-weight: 700; font-size: 24px; color: #111; background: #ffd27a;
}
.un-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.un-tone-0 { background: #ffd27a; }
.un-tone-1 { background: #8fe0c6; }
.un-tone-2 { background: #ff9c8f; }
.un-tone-3 { background: #b9c8ff; }
.un-tone-4 { background: #f3b6f4; }

/* Countdown overlay */
.un-overlay {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; justify-content: center; padding: 12px;
  animation: un-up .25s ease-out;
}
@keyframes un-up { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.un-overlay__card {
  width: 100%; max-width: 440px; padding: 16px; border-radius: 12px;
  background: #15171b; color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.un-overlay__label { margin: 0 0 10px; font-size: 14px; color: #c9ccd3; }
.un-overlay__label span { font-weight: 700; color: #fff; }
.un-overlay__song { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.un-overlay__ring {
  --p: 0;
  position: relative; flex: none; width: 76px; height: 76px; border-radius: 10px; padding: 4px;
  background: conic-gradient(#3d94f6 calc(var(--p) * 360deg), rgba(255,255,255,.18) 0);
  transition: --p 1s linear;
}
.un-overlay__ring .un-tile--big { width: 68px; height: 68px; border-radius: 7px; font-size: 32px; }
.un-overlay__text { display: flex; flex-direction: column; min-width: 0; }
.un-overlay__text strong { font-size: 17px; line-height: 1.3; }
.un-overlay__text span { font-size: 14px; color: #c9ccd3; }
.un-overlay__actions { display: flex; gap: 10px; }
.un-btn { flex: 1; min-height: 44px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; border: 0; }
.un-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.un-btn--play { background: #3d94f6; color: #fff; }
.un-btn--play:hover { background: #1e62d0; }

/* "Tap to play" when the browser blocks autoplay */
.un-tap {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; min-height: 44px; padding: 0 18px;
  background: #0353f1; color: #fff; border: 0; border-radius: 22px; font-size: 15px; font-weight: 700; cursor: pointer;
  animation: un-pulse 1.4s ease-in-out infinite;
}
@keyframes un-pulse { 50% { box-shadow: 0 0 0 8px rgba(3, 83, 241, .2); } }
@media (prefers-reduced-motion: reduce) { .un-overlay, .un-tap { animation: none; } .un-overlay__ring { transition: none; } }

/* Night mode */
[data-theme="dark"] .upnext { background: #1d2025; border-color: #2f333a; }
[data-theme="dark"] .upnext__title { color: #f3f1ec; }
[data-theme="dark"] .upnext__switch { color: #c9c6bf; }
[data-theme="dark"] .upnext__track { background: #4a4f58; }
[data-theme="dark"] .upnext__card { background: #16181c; border-color: #2f333a; }
[data-theme="dark"] .upnext__card:hover, [data-theme="dark"] .upnext__row:hover { background: #262a31; }
[data-theme="dark"] .blog-posts .upnext__song, [data-theme="dark"] .upnext__song { color: #7fb0ff; }
[data-theme="dark"] .upnext__artist { color: #a9a49a; }
[data-theme="dark"] .un-overlay__card { background: #23262c; border: 1px solid #3a3e46; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.blog-posts .upnext__list, .upnext__list { margin-left: 0 !important; padding-left: 0 !important; }

/* ==========================================================================
   Music-style song rows (Latest, archives, Popular Songs, Related Songs)
   Same look as the "Up next" box.
   ========================================================================== */
.song-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none !important; color: #111;
}
.song-row:hover { background: #e8eefc; }
.song-row .un-tile { width: 48px; height: 48px; font-size: 22px; }
.song-row__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.post .song-row .song-row__title,
.song-row .song-row__title {
  margin: 0; padding: 0; border: 0;
  font-family: Arial, 'Hind Siliguri', Helvetica, sans-serif;
  font-size: 16px; font-weight: 600; line-height: 1.35;
  color: #1e62d0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-row__meta { font-size: 13px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row__play {
  width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid #0353f1; color: #0353f1; background: #fff;
  transition: background-color .15s, color .15s;
}
.song-row:hover .song-row__play { background: #0353f1; color: #fff; }
.song-row__rank { width: 20px; flex: none; text-align: center; font-weight: 800; font-size: 17px; color: #0353f1; }
.song-row--small { padding: 6px 6px; gap: 10px; }
.song-row--small .un-tile { width: 40px; height: 40px; font-size: 18px; }
.song-row--small .song-row__title { font-size: 14px; }
.song-row--small .song-row__meta { font-size: 12px; }
.song-row--small .song-row__play { width: 28px; height: 28px; }
.song-row--small .song-row__play svg { width: 11px; height: 11px; }

/* Latest / archive / search list: one light box, like "Up next". */
body:not(.single) .blog-posts.hfeed {
  background: #f4f6fb; border: 1px solid #dde3ef; border-radius: 8px; padding: 6px;
}
body:not(.single) .blog-posts.hfeed html .post,
body:not(.single) .blog-posts.hfeed .post { border-bottom: 1px solid #e3e8f2; }
body:not(.single) .blog-posts.hfeed .post:last-child { border-bottom: 0; }
body:not(.single) .blog-posts.hfeed .post .song-row { margin: 2px 0; }

/* Shared list reset (sidebar arrows, related box). */
ul.song-rows { list-style: none; margin: 0; padding: 0; }
.sidebar-wrapper ul.song-rows li,
ul.song-rows li { background: none; padding: 0; margin: 0 0 2px; display: block; line-height: normal; }
.sidebar-wrapper ul.song-rows li a:link { text-decoration: none !important; }
.related-songs ul.song-rows { padding: 6px; background: #fff; border-radius: 8px; margin-top: 8px; }
.related-songs { border-radius: 8px; }

/* Section titles get a small music note. */
#main-content > h2.title,
.related-songs > h2,
.sidebar-wrapper .widget > h2,
.sidebar-wrapper h2.title,
.upnext__title {
  display: flex; align-items: center; gap: 8px;
}
#main-content > h2.title::before,
.related-songs > h2::before,
.sidebar-wrapper .widget > h2::before,
.sidebar-wrapper h2.title::before {
  content: ''; width: 18px; height: 18px; flex: none; background: #0353f1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18.5a3 3 0 1 1-2-2.83V5l12-2v12.5a3 3 0 1 1-2-2.83V7.3L9 8.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18.5a3 3 0 1 1-2-2.83V5l12-2v12.5a3 3 0 1 1-2-2.83V7.3L9 8.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Category chips (blue bar): pill shape with a small note. */
.navbar-bottom ul li a { border-radius: 16px; padding-left: 12px; padding-right: 14px; }
.navbar-bottom ul li a::before { content: '\266A'; margin-right: 6px; opacity: .85; }

/* Categories / Popular Singers box headings. */
#middle-widgets .widget h2 { display: flex; align-items: center; gap: 8px; }
#middle-widgets .widget h2::before {
  content: ''; width: 18px; height: 18px; flex: none; background: #0353f1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#middle-widgets .widget + .widget h2::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11z'/%3E%3C/svg%3E");
}

/* Night mode for the rows */
[data-theme="dark"] .song-row { color: #e6e4df; }
[data-theme="dark"] .song-row:hover { background: #262a31; }
[data-theme="dark"] .post .song-row .song-row__title,
[data-theme="dark"] .song-row .song-row__title { color: #7fb0ff; }
[data-theme="dark"] .song-row__meta { color: #a9a49a; }
[data-theme="dark"] .song-row__play { background: transparent; border-color: #7fb0ff; color: #7fb0ff; }
[data-theme="dark"] .song-row:hover .song-row__play { background: #3d94f6; border-color: #3d94f6; color: #fff; }
[data-theme="dark"] .song-row__rank { color: #7fb0ff; }
[data-theme="dark"] body:not(.single) .blog-posts.hfeed { background: #1d2025; border-color: #2f333a; }
[data-theme="dark"] body:not(.single) .blog-posts.hfeed .post { border-color: #2a2e35 !important; }
[data-theme="dark"] .related-songs { background-color: #1d2025; }
[data-theme="dark"] .related-songs ul.song-rows { background: #16181c; }
[data-theme="dark"] #main-content > h2.title::before,
[data-theme="dark"] .related-songs > h2::before,
[data-theme="dark"] .sidebar-wrapper .widget > h2::before,
[data-theme="dark"] .sidebar-wrapper h2.title::before,
[data-theme="dark"] #middle-widgets .widget h2::before { background: #7fb0ff; }

/* ==========================================================================
   Song page sections in the same music style
   ========================================================================== */
:root { --mh-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18.5a3 3 0 1 1-2-2.83V5l12-2v12.5a3 3 0 1 1-2-2.83V7.3L9 8.6z'/%3E%3C/svg%3E"); }

/* Title */
.item .post h1.post-title.entry-title { font-size: 24px; line-height: 1.3; border-bottom: 0; margin-bottom: 4px; padding-bottom: 0; }
#post-description { color: #555; font-size: 14px; margin-bottom: 10px; }

/* Tags -> chips */
.post-labels { border-radius: 8px 8px 0 0; padding: 10px 12px; }
.post-labels .tags-links a {
  display: inline-block; margin: 3px 2px; padding: 3px 10px; border-radius: 12px;
  background: #fff; border: 1px solid #ffd2a8; color: #d35f00; text-decoration: none; font-weight: 600;
}
.post-labels .tags-links a:hover { background: #ff7700; border-color: #ff7700; color: #fff; }

/* About This Song card */
#track-info { border: 1px solid #dde3ef; border-collapse: separate; border-spacing: 0; width: 100%; }
#track-info td { padding: 10px 14px; border-color: #edf0f6; }
#track-info tr td:first-child:not([colspan]) { width: 38%; color: #666; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
#track-info td a { color: #1e62d0; font-weight: 600; }
#track-info .table-title { background: #f4f6fb; }
#track-info .table-title h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
#track-info .table-title h4::before,
.watch-title::before,
.lyrics-content h2::before {
  content: ''; width: 18px; height: 18px; flex: none; background: #0353f1;
  -webkit-mask: var(--mh-note) center / contain no-repeat; mask: var(--mh-note) center / contain no-repeat;
}

/* Player + download: one rounded card */
#buttons-wrapper { border: 0; border-radius: 0 0 8px 8px; }
#buttons {
  max-width: 340px; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin: 8px auto 0; padding: 14px; background: #f4f6fb; border: 1px solid #dde3ef; border-radius: 12px;
}
#buttons::after { display: none; }
#buttons #play { float: none; margin: 0; }
#buttons a#download, .item a#download {
  float: none; margin: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 24px; border: 0; box-shadow: none; text-shadow: none;
  background: #0353f1; font-size: 17px;
}
#buttons a#download::before {
  content: ''; width: 18px; height: 18px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
#buttons a#download:hover, .item a#download:hover { background: #1e62d0; }
#buttons .counter { width: 100%; font-size: 13px; color: #666; }
#play .sm2-360ui { box-shadow: 0 0 0 1px #dde3ef, 0 2px 6px rgba(3, 83, 241, .15); }

/* Orange bars -> rounded buttons */
.video-link a, .video-link a:hover, .video-link a:focus { border-radius: 24px; padding: 10px 16px; font-weight: 600; }
#video-link { margin: 12px 0; }
.watch-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-top: 18px; }
.player-wrapper { border-radius: 10px; overflow: hidden; }
.player-wrapper video { background: #000; }

/* Lyrics card */
.lyrics-container { margin-top: 16px; padding: 18px 14px 10px; background: #f4f6fb; border: 1px solid #dde3ef; border-radius: 12px; }
.lyrics-content h2 { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; }
.lyrics-container .lyrics.lyrics-less:after { background-image: linear-gradient(to bottom, transparent, #f4f6fb); }
.lyrics-container .lyrics-button { width: auto; display: inline-flex; align-items: center; gap: 6px; margin: 8px auto 0; padding: 8px 18px; border-radius: 20px; background: #fff; border: 1px solid #dde3ef; }
.lyrics-container .lyrics-button:hover { background: #e8eefc; }
.lyrics-button svg { fill: currentColor; }

/* Share: rounded pills + WhatsApp */
.post .share-buttons ul { display: flex; gap: 8px; float: none; padding: 0; }
.share-buttons li { width: auto; flex: 1; float: none; }
.share-buttons li a { border-radius: 24px; font-weight: 600; padding: 10px 8px; }
.share-buttons a.whatsapp { background-color: #1fa855; }
.share-buttons a.whatsapp:hover { background-color: #25c262; }

/* Newer / Home / Older */
#blog-pager-newer-link a, #blog-pager-older-link a, #blog-pager a.home-link {
  border-radius: 20px; padding: 7px 18px; font-size: 15px; background-color: #0353f1;
}
#blog-pager-newer-link a:hover, #blog-pager-older-link a:hover, #blog-pager a.home-link:hover { background-color: #1e62d0; }

/* Footer links as small pills */
.PageList ul li a, #upper-footer ul li a {
  display: inline-block; padding: 5px 12px; border-radius: 14px; background: #f4f6fb; border: 1px solid #dde3ef;
  text-decoration: none !important; font-size: 14px;
}
.PageList ul li a:hover, #upper-footer ul li a:hover { background: #0353f1; border-color: #0353f1; color: #fff; }

/* Download page: big centred pill */
.page-template-page-download a#download { float: none; display: inline-flex; margin: 16px auto; padding: 14px 36px; border-radius: 30px; border: 0; box-shadow: none; text-shadow: none; background: #0353f1; }
.page-template-page-download a#download:hover { background: #1e62d0; }
.page-template-page-download .download-wrap { padding: 20px 12px; background: #f4f6fb; border: 1px solid #dde3ef; border-radius: 12px; }

/* Night mode for the sections above */
[data-theme="dark"] #post-description { color: #a9a49a; }
[data-theme="dark"] .post-labels .tags-links a { background: #16181c; border-color: #5a3a1a; color: #ffb066; }
[data-theme="dark"] .post-labels .tags-links a:hover { background: #ff7700; color: #fff; }
[data-theme="dark"] #track-info { border-color: #2f333a; }
[data-theme="dark"] #track-info tr td:first-child:not([colspan]) { color: #a9a49a; }
[data-theme="dark"] #track-info td a, [data-theme="dark"] .blog-posts #track-info td a { color: #7fb0ff; }
[data-theme="dark"] #track-info .table-title { background: #1d2025; }
[data-theme="dark"] #buttons { background: #1d2025; border-color: #2f333a; }
[data-theme="dark"] #buttons .counter { color: #a9a49a; }
[data-theme="dark"] .lyrics-container { background: #1d2025; border-color: #2f333a; }
[data-theme="dark"] .lyrics-container .lyrics.lyrics-less:after { background-image: linear-gradient(to bottom, transparent, #1d2025); }
[data-theme="dark"] .lyrics-container .lyrics-button { background: #16181c; border-color: #2f333a; }
[data-theme="dark"] .PageList ul li a, [data-theme="dark"] #upper-footer ul li a { background: #1d2025; border-color: #2f333a; }
[data-theme="dark"] .page-template-page-download .download-wrap { background: #1d2025; border-color: #2f333a; }
[data-theme="dark"] #track-info .table-title h4::before,
[data-theme="dark"] .watch-title::before,
[data-theme="dark"] .lyrics-content h2::before { background: #7fb0ff; }

/* ==========================================================================
   New bar-style player (like the new Mp3Haat design)
   ========================================================================== */
#buttons.song-player {
  max-width: 560px; display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 14px; text-align: left;
}
.mh-player { display: flex; align-items: center; gap: 14px; }
.mh-player__btn {
  width: 60px; height: 60px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%; background: #0353f1; color: #fff; cursor: pointer;
  box-shadow: 0 4px 12px rgba(3, 83, 241, .3); transition: transform .1s ease, background-color .15s;
}
.mh-player__btn:hover { background: #1e62d0; }
.mh-player__btn:active { transform: scale(.95); }
.mh-player__btn .mh-ico-pause, .mh-player.is-playing .mh-player__btn .mh-ico-play { display: none; }
.mh-player.is-playing .mh-player__btn .mh-ico-pause { display: block; }
.mh-player.is-loading .mh-player__btn { animation: mh-pulse 1s ease-in-out infinite; }
@keyframes mh-pulse { 50% { opacity: .6; } }
.mh-player__track { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mh-player__wave { position: relative; display: flex; align-items: center; gap: 3px; height: 42px; }
.mh-player__wave span { flex: 1; min-width: 2px; border-radius: 2px; background: #c9d3e6; transition: background-color .15s; }
.mh-player__wave span.is-played { background: #0353f1; }
.mh-player__seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mh-player__wave:has(.mh-player__seek:focus-visible) { outline: 3px solid #f2a93b; outline-offset: 4px; border-radius: 6px; }
.mh-player__time { display: flex; justify-content: space-between; font-size: 12px; color: #666; font-variant-numeric: tabular-nums; }
.mh-player.has-error .mh-player__time::after { content: 'Could not load audio'; color: #d93025; }

#buttons.song-player a#download {
  width: 100%; justify-content: center; padding: 14px 20px; border-radius: 12px; font-size: 18px;
}
#buttons.song-player a#download::before { display: none; }
#buttons.song-player .btn-meta { font-size: 13px; font-weight: 500; opacity: .8; }
#buttons.song-player .counter { width: auto; text-align: center; }
.un-tap { display: flex; }

[data-theme="dark"] .mh-player__wave span { background: #3a3e46; }
[data-theme="dark"] .mh-player__wave span.is-played { background: #3d94f6; }
[data-theme="dark"] .mh-player__btn { background: #3d94f6; box-shadow: none; }
[data-theme="dark"] .mh-player__time { color: #a9a49a; }
@media (prefers-reduced-motion: reduce) { .mh-player.is-loading .mh-player__btn { animation: none; } }

/* ==========================================================================
   Mini player (keeps playing across pages)
   ========================================================================== */
.mh-mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
  background: #ffffff; border-top: 1px solid #dde3ef; box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
  animation: un-up .25s ease-out;
}
body.has-mini-player { padding-bottom: 72px; }
.mh-mini__progress { height: 3px; background: #e3e8f2; }
.mh-mini__progress span { display: block; height: 100%; width: 0; background: #0353f1; transition: width .25s linear; }
.mh-mini__inner { max-width: 1020px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.mh-mini__song { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: #111; }
.mh-mini__tile { width: 44px; height: 44px; font-size: 20px; }
.mh-mini__text { display: flex; flex-direction: column; min-width: 0; }
.mh-mini__text strong { font-size: 14px; color: #1e62d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-mini__text span { font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-mini__time { font-size: 12px; color: #666; font-variant-numeric: tabular-nums; }
.mh-mini__btn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%; background: #0353f1; color: #fff; cursor: pointer;
}
.mh-mini__btn .mh-ico-pause, .mh-mini.is-playing .mh-mini__btn .mh-ico-play { display: none; }
.mh-mini.is-playing .mh-mini__btn .mh-ico-pause { display: block; }
.mh-mini.needs-tap .mh-mini__btn { animation: un-pulse 1.4s ease-in-out infinite; }
.mh-mini__close {
  width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #666; cursor: pointer;
}
.mh-mini__close:hover { background: #eef1f6; color: #111; }

[data-theme="dark"] .mh-mini { background: #1d2025; border-color: #2f333a; box-shadow: 0 -4px 18px rgba(0, 0, 0, .5); }
[data-theme="dark"] .mh-mini__progress { background: #2f333a; }
[data-theme="dark"] .mh-mini__progress span { background: #3d94f6; }
[data-theme="dark"] .mh-mini__text strong { color: #7fb0ff; }
[data-theme="dark"] .mh-mini__text span, [data-theme="dark"] .mh-mini__time { color: #a9a49a; }
[data-theme="dark"] .mh-mini__btn { background: #3d94f6; }
[data-theme="dark"] .mh-mini__close { color: #a9a49a; }
[data-theme="dark"] .mh-mini__close:hover { background: #2a2e35; color: #fff; }

/* ==========================================================================
   Widgets: Recent Posts (now song rows) + Categories (chips with count)
   ========================================================================== */
.widget_recent_entries ul.song-rows li { background: none; padding: 0; }
.mh-latest { margin: 0; }

.widget_categories ul,
.wp-block-categories-list {
  list-style: none; margin: 0; padding: 4px; background: #f4f6fb; border: 1px solid #dde3ef; border-radius: 10px;
}
.sidebar-wrapper .widget_categories ul li,
.widget_categories ul li,
.wp-block-categories-list li {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 8px 0 0; background: none; line-height: normal;
  border-bottom: 1px solid #e3e8f2;
}
.widget_categories ul li:last-child,
.wp-block-categories-list li:last-child { border-bottom: 0; }
.widget_categories ul li a,
.wp-block-categories-list li a {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 8px;
  color: #1e62d0; font-weight: 600; font-size: 15px; text-decoration: none !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.widget_categories ul li a::before,
.wp-block-categories-list li a::before {
  content: '\266A'; flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e3ebff; color: #0353f1; font-size: 15px; font-weight: 400;
}
.widget_categories ul li:hover,
.wp-block-categories-list li:hover { background: #e8eefc; border-radius: 8px; }
.cat-count {
  flex: none; min-width: 28px; padding: 2px 8px; border-radius: 10px; text-align: center;
  background: #fff; border: 1px solid #dde3ef; color: #666; font-size: 12px; font-weight: 600;
}
.widget_categories ul.children { border: 0; background: none; padding: 0 0 0 20px; flex-basis: 100%; }
.widget_categories select, .wp-block-categories__dropdown select { width: 100%; padding: 8px 10px; border-radius: 8px; }

[data-theme="dark"] .widget_categories ul,
[data-theme="dark"] .wp-block-categories-list { background: #1d2025; border-color: #2f333a; }
[data-theme="dark"] .widget_categories ul li,
[data-theme="dark"] .wp-block-categories-list li { border-color: #2a2e35; }
[data-theme="dark"] .widget_categories ul li a,
[data-theme="dark"] .wp-block-categories-list li a { color: #7fb0ff; }
[data-theme="dark"] .widget_categories ul li a::before,
[data-theme="dark"] .wp-block-categories-list li a::before { background: #23314d; color: #7fb0ff; }
[data-theme="dark"] .widget_categories ul li:hover,
[data-theme="dark"] .wp-block-categories-list li:hover { background: #262a31; }
[data-theme="dark"] .cat-count { background: #16181c; border-color: #2f333a; color: #a9a49a; }

/* Download page: Back to song */
.page-template-page-download .download-wrap.download-back { background: none; border: 0; padding: 4px 0 12px; }
.back-to-song {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 10px 18px; border-radius: 24px; border: 1.5px solid #0353f1; background: #fff;
  color: #0353f1; font-size: 15px; font-weight: 700; text-decoration: none !important;
}
.back-to-song > span { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.25; text-align: left; }
.back-to-song__name { font-size: 12px; font-weight: 500; color: #555; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-to-song:hover { background: #0353f1; color: #fff; }
.back-to-song:hover .back-to-song__name { color: #e3ecff; }
[data-theme="dark"] .back-to-song { background: transparent; border-color: #7fb0ff; color: #7fb0ff; }
[data-theme="dark"] .back-to-song__name { color: #a9a49a; }
[data-theme="dark"] .back-to-song:hover { background: #3d94f6; border-color: #3d94f6; color: #fff; }
.sidebar-wrapper .widget_categories ul li a:link, .sidebar-wrapper .widget_categories ul li a:visited,
.sidebar-wrapper .wp-block-categories-list li a:link, .sidebar-wrapper .wp-block-categories-list li a:visited,
.sidebar-wrapper .song-row:link, .sidebar-wrapper .song-row:visited { text-decoration: none !important; }

/* Download page player */
.download-player { max-width: 520px; margin: 14px auto 6px; padding: 14px; background: #f4f6fb; border: 1px solid #dde3ef; border-radius: 12px; text-align: left; }
[data-theme="dark"] .download-player { background: #1d2025; border-color: #2f333a; }

/* ==========================================================================
   3.0: favourites, charts, artist header, soft navigation bar
   ========================================================================== */

/* Header: favourites button next to night mode */
.main-nav { padding-right: 96px; }
.mh-fav-open {
  position: absolute; right: 52px; top: 7px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0;
  background: #0b3fc0; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; cursor: pointer;
}
.mh-fav-open:hover { background: #d858da; border-color: #d858da; }
.mh-fav-open__count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
@media (max-width: 767px) { .mh-fav-open { top: 6px; width: 34px; height: 34px; right: 50px; } }

/* Song title + heart */
.mh-songhead { display: flex; align-items: flex-start; gap: 10px; }
.mh-songhead h1 { flex: 1; min-width: 0; }
.mh-fav {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1.5px solid #dde3ef; border-radius: 50%; background: #fff; cursor: pointer;
}
.mh-fav svg { fill: none; stroke: #ff3b5c; stroke-width: 2; }
.mh-fav[aria-pressed="true"] { border-color: #ff3b5c; background: #fff0f3; }
.mh-fav[aria-pressed="true"] svg { fill: #ff3b5c; }
.mh-fav:active svg { transform: scale(.85); }
[data-theme="dark"] .mh-fav { background: #16181c; border-color: #3a3e46; }
[data-theme="dark"] .mh-fav[aria-pressed="true"] { background: #3a1820; border-color: #ff5c78; }

/* Mini player: extra buttons */
.mh-mini__fav { width: 38px; height: 38px; border: 0; background: transparent; }
.mh-mini__next {
  width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #0353f1; cursor: pointer;
}
.mh-mini__next:hover { background: #eef1f6; }
.mh-mini__next[hidden] { display: none; }
[data-theme="dark"] .mh-mini__next { color: #7fb0ff; }
[data-theme="dark"] .mh-mini__next:hover { background: #2a2e35; }
@media (max-width: 420px) { .mh-mini__time { display: none; } .mh-mini__inner { gap: 6px; padding: 8px; } }

/* Page player waiting for a tap (phone blocked autoplay) */
.mh-player.needs-tap .mh-player__btn { animation: un-pulse 1.4s ease-in-out infinite; }

/* Favourites sheet */
.mh-favs { position: fixed; inset: 0; z-index: 10000; }
.mh-favs__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.mh-favs__sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; display: flex; flex-direction: column;
  margin: 0 auto; max-width: 560px; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3);
  animation: un-up .25s ease-out;
}
@media (min-width: 768px) { .mh-favs__sheet { top: 50%; bottom: auto; transform: translateY(-50%); border-radius: 16px; animation: none; } }
.mh-favs__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; border-bottom: 1px solid #e3e8f2; }
.mh-favs__head h2 { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; font-size: 19px; color: #111; }
.mh-favs__head h2 svg { fill: #ff3b5c; }
.mh-favs__playall {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 19px;
  background: #0353f1; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.mh-favs__playall[hidden] { display: none; }
.mh-favs__playall svg { width: 16px; height: 16px; }
.mh-favs__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4f6fb; color: #333; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mh-favs__body { overflow-y: auto; padding: 8px 10px 18px; }
.mh-favs__empty { padding: 30px 16px; text-align: center; color: #666; }
.mh-favs__item { display: flex !important; align-items: center; gap: 4px; }
.mh-favs__item .song-row { flex: 1; min-width: 0; }
.mh-favs__remove { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #888; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mh-favs__remove:hover { background: #fff0f3; color: #ff3b5c; }
body.mh-favs-open { overflow: hidden; }
[data-theme="dark"] .mh-favs__sheet { background: #1d2025; }
[data-theme="dark"] .mh-favs__head { border-color: #2f333a; }
[data-theme="dark"] .mh-favs__head h2 { color: #f3f1ec; }
[data-theme="dark"] .mh-favs__close { background: #2a2e35; color: #ddd; }
[data-theme="dark"] .mh-favs__empty { color: #a9a49a; }
[data-theme="dark"] .mh-favs__playall { background: #3d94f6; }

/* Soft navigation loading bar */
.mh-navbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 10001; background: #f2a93b; opacity: 0; transition: width .3s ease, opacity .3s; pointer-events: none; }
.mh-navbar.is-loading { width: 70%; opacity: 1; transition: width 2s ease-out; }

/* Home: Trending / Top 5 tabs */
.mh-charts { margin: 6px 0 18px; padding: 6px; background: #f4f6fb; border: 1px solid #dde3ef; border-radius: 12px; }
.mh-charts__tabs { display: flex; gap: 6px; padding: 4px; }
.mh-charts__tab {
  flex: 1; min-height: 42px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent;
  font-size: 15px; font-weight: 700; color: #555; cursor: pointer;
}
.mh-charts__tab[aria-selected="true"] { background: #0353f1; color: #fff; }
.mh-charts__tab:not([aria-selected="true"]):hover { background: #e8eefc; }
.mh-charts__panel { padding: 4px 2px 2px; }
.mh-charts .song-row { background: transparent; }
[data-theme="dark"] .mh-charts { background: #1d2025; border-color: #2f333a; }
[data-theme="dark"] .mh-charts__tab { color: #c9c6bf; }
[data-theme="dark"] .mh-charts__tab[aria-selected="true"] { background: #3d94f6; color: #fff; }
[data-theme="dark"] .mh-charts__tab:not([aria-selected="true"]):hover { background: #262a31; }

/* Artist / category header */
.mh-artist {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 16px; padding: 18px;
  background: linear-gradient(135deg, #0353f1, #3d94f6); border-radius: 14px; color: #fff;
}
.mh-artist__avatar {
  width: 84px; height: 84px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: #111; box-shadow: 0 0 0 4px rgba(255,255,255,.35);
}
.mh-artist__text { flex: 1; min-width: 160px; }
.mh-artist__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; opacity: .85; }
.post .mh-artist__name, .mh-artist__name.page-title, h1.mh-artist__name {
  margin: 2px 0; padding: 0; border: 0; font-size: 30px; line-height: 1.15; color: #fff !important;
}
.mh-artist__count { margin: 0; font-size: 14px; opacity: .9; }
.mh-artist__play {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 23px;
  background: #fff; color: #0353f1; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.mh-artist__play:hover { background: #f2f6ff; }
@media (max-width: 480px) { .mh-artist__play { width: 100%; justify-content: center; } }
[data-theme="dark"] .mh-artist { background: linear-gradient(135deg, #1f3c8a, #2a5bb8); }
@media (max-width: 480px) { .mh-charts__tab { font-size: 13px; padding: 0 6px; } }

/* ==========================================================================
   Spinning record (mini player) + floating bubble
   ========================================================================== */
.mh-disc {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(255,255,255,.08) 35% 36%, transparent 37% 45%, rgba(255,255,255,.08) 46% 47%, transparent 48%),
    repeating-radial-gradient(circle, #1b1b1b 0 2px, #262626 2px 3px);
  box-shadow: 0 1px 4px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  animation: mh-spin 4s linear infinite;
  animation-play-state: paused;
}
.mh-disc::after { /* little hole in the middle */
  content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.mh-disc .mh-disc__label {
  width: 52%; height: 52%; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1;
}
.mh-disc .mh-disc__label img { border-radius: 50%; }
.mh-mini.is-playing .mh-disc { animation-play-state: running; }
@keyframes mh-spin { to { transform: rotate(360deg); } }

/* Minimise button */
.mh-mini__collapse {
  width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #666; cursor: pointer;
}
.mh-mini__collapse:hover { background: #eef1f6; color: #111; }
[data-theme="dark"] .mh-mini__collapse { color: #a9a49a; }
[data-theme="dark"] .mh-mini__collapse:hover { background: #2a2e35; color: #fff; }

/* Floating bubble (collapsed player) */
.mh-bubble { display: none; }
.mh-mini.is-collapsed { left: auto; right: 14px; bottom: 14px; background: none; border: 0; box-shadow: none; animation: none; }
.mh-mini.is-collapsed .mh-mini__progress,
.mh-mini.is-collapsed .mh-mini__inner { display: none; }
body.has-mini-player.mh-mini-collapsed { padding-bottom: 0; }
.mh-mini.is-collapsed .mh-bubble {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 70px; height: 70px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  animation: mh-pop .25s ease-out;
}
@keyframes mh-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.mh-bubble__ring {
  --p: 0;
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#0353f1 calc(var(--p) * 360deg), #dde3ef 0);
  -webkit-mask: radial-gradient(circle, transparent 0 30px, #000 31px);
          mask: radial-gradient(circle, transparent 0 30px, #000 31px);
}
.mh-disc--bubble { width: 58px; height: 58px; }
.mh-disc--bubble .mh-disc__label { font-size: 15px; }
.mh-mini.is-collapsed.is-playing .mh-disc--bubble { animation-play-state: running; }
.mh-bubble__state {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: #0353f1; color: #fff;
  box-shadow: 0 0 0 2px #fff;
}
.mh-bubble__state svg { width: 12px; height: 12px; }
.mh-bubble__state .mh-ico-pause, .mh-mini.is-playing .mh-bubble__state .mh-ico-play { display: none; }
.mh-mini.is-playing .mh-bubble__state .mh-ico-pause { display: block; }
.mh-mini.needs-tap.is-collapsed .mh-bubble { animation: un-pulse 1.4s ease-in-out infinite; }
[data-theme="dark"] .mh-mini.is-collapsed .mh-bubble { background: #1d2025; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
[data-theme="dark"] .mh-bubble__ring { background: conic-gradient(#3d94f6 calc(var(--p) * 360deg), #3a3e46 0); }
[data-theme="dark"] .mh-bubble__state { background: #3d94f6; box-shadow: 0 0 0 2px #1d2025; }
@media (prefers-reduced-motion: reduce) { .mh-disc { animation: none; } .mh-mini.is-collapsed .mh-bubble { animation: none; } }
.mh-disc .mh-disc__label:not(:has(img)) { font-size: 0; }

/* ==========================================================================
   Chart pages (/trending/, /top-songs/) + "See all" on the home tabs
   ========================================================================== */
.mh-charts__more {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 4px 4px; min-height: 42px;
  border-radius: 9px; background: #fff; border: 1px solid #dde3ef; color: #0353f1 !important;
  font-weight: 700; font-size: 14px; text-decoration: none !important;
}
.mh-charts__more:hover { background: #0353f1; border-color: #0353f1; color: #fff !important; }
[data-theme="dark"] .mh-charts__more { background: #16181c; border-color: #2f333a; color: #7fb0ff !important; }
[data-theme="dark"] .mh-charts__more:hover { background: #3d94f6; color: #fff !important; }

.mh-chart-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; padding: 18px;
  border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ff7a18, #f2a93b);
}
.mh-top-songs .mh-chart-head, body.mh-chart-page .mh-chart-head.is-top { background: linear-gradient(135deg, #0353f1, #3d94f6); }
.mh-chart-head__icon { width: 64px; height: 64px; flex: none; border-radius: 50%; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; font-size: 32px; }
.mh-chart-head__text { flex: 1; min-width: 180px; }
h1.mh-chart-head__title, .post .mh-chart-head__title { margin: 0; padding: 0; border: 0; font-size: 24px; line-height: 1.2; color: #fff !important; }
.mh-chart-head__sub { margin: 4px 0 0; font-size: 13px; opacity: .92; }
.mh-chart-head .mh-artist__play { color: #d35f00; }
@media (max-width: 480px) { .mh-chart-head .mh-artist__play { width: 100%; justify-content: center; } }
[data-theme="dark"] .mh-chart-head { background: linear-gradient(135deg, #8a3b06, #a8640f); }

.mh-chart-switch { display: flex; gap: 8px; margin: 0 0 12px; }
.mh-chart-switch a {
  flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; border: 1px solid #dde3ef; background: #f4f6fb;
  color: #333; font-weight: 700; font-size: 14px; text-decoration: none !important;
}
.mh-chart-switch a[aria-current="page"] { background: #0353f1; border-color: #0353f1; color: #fff; }
[data-theme="dark"] .mh-chart-switch a { background: #1d2025; border-color: #2f333a; color: #c9c6bf; }
[data-theme="dark"] .mh-chart-switch a[aria-current="page"] { background: #3d94f6; border-color: #3d94f6; color: #fff; }

.mh-chart-list .song-row .song-row__rank { font-size: 19px; width: 26px; }

.mh-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 6px; }
.mh-pager__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  background: #0353f1; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important;
}
.mh-pager__btn:hover { background: #1e62d0; }
.mh-pager__btn.is-disabled { background: #e3e8f2; color: #9aa3b5 !important; }
.mh-pager__nums { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.mh-pager__num {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px;
  border: 1px solid #dde3ef; background: #fff; color: #1e62d0 !important; font-weight: 700; text-decoration: none !important;
}
.mh-pager__num[aria-current="page"] { background: #0353f1; border-color: #0353f1; color: #fff !important; }
.mh-pager__dots { color: #888; padding: 0 2px; }
@media (max-width: 400px) { .mh-pager__nums { display: none; } }
[data-theme="dark"] .mh-pager__btn { background: #3d94f6; }
[data-theme="dark"] .mh-pager__btn.is-disabled { background: #2a2e35; color: #6b7280 !important; }
[data-theme="dark"] .mh-pager__num { background: #16181c; border-color: #2f333a; color: #7fb0ff !important; }
[data-theme="dark"] .mh-pager__num[aria-current="page"] { background: #3d94f6; border-color: #3d94f6; color: #fff !important; }
.mh-chart-empty { padding: 30px 10px; text-align: center; color: #666; }

/* ==========================================================================
   Main player: the play button is a spinning record
   ========================================================================== */
.mh-player__btn {
  position: relative; width: 72px; height: 72px; overflow: hidden;
  background: #111; box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.mh-player__btn:hover { background: #111; }
.mh-player__vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 20deg, transparent 0 40deg, rgba(255,255,255,.16) 55deg, transparent 75deg 220deg, rgba(255,255,255,.10) 235deg, transparent 255deg),
    radial-gradient(circle, #0353f1 0 36%, #fff 36.5% 38%, transparent 38.5%),
    repeating-radial-gradient(circle, #161616 0 1.5px, #2a2a2a 1.5px 3px);
  animation: mh-spin 3s linear infinite;
  animation-play-state: paused;
}
.mh-player.is-playing .mh-player__vinyl { animation-play-state: running; }
.mh-player__btn svg { position: relative; z-index: 1; width: 22px; height: 22px; color: #fff; }
.mh-player.is-playing .mh-player__btn { box-shadow: 0 0 0 4px rgba(3, 83, 241, .18), 0 4px 14px rgba(0, 0, 0, .28); }
[data-theme="dark"] .mh-player__btn { background: #000; }
[data-theme="dark"] .mh-player__vinyl {
  background:
    conic-gradient(from 20deg, transparent 0 40deg, rgba(255,255,255,.16) 55deg, transparent 75deg 220deg, rgba(255,255,255,.10) 235deg, transparent 255deg),
    radial-gradient(circle, #3d94f6 0 36%, #fff 36.5% 38%, transparent 38.5%),
    repeating-radial-gradient(circle, #111 0 1.5px, #262626 1.5px 3px);
}
@media (prefers-reduced-motion: reduce) { .mh-player__vinyl { animation: none; } }

/* ==========================================================================
   Singer buttons under the song title
   ========================================================================== */
.mh-singers { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.mh-singer {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 12px 6px 6px;
  border-radius: 28px; background: #f4f6fb; border: 1px solid #dde3ef; color: #111 !important; text-decoration: none !important;
}
.mh-singer:hover { background: #e8eefc; border-color: #0353f1; }
.mh-singer__av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: #111; }
.mh-singer__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mh-singer__name { font-weight: 700; font-size: 15px; color: #1e62d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-singer__count { font-size: 12px; color: #666; }
.mh-singer svg { color: #0353f1; flex: none; }
[data-theme="dark"] .mh-singer { background: #1d2025; border-color: #2f333a; color: #e6e4df !important; }
[data-theme="dark"] .mh-singer:hover { background: #262a31; border-color: #3d94f6; }
[data-theme="dark"] .mh-singer__name { color: #7fb0ff; }
[data-theme="dark"] .mh-singer__count { color: #a9a49a; }
[data-theme="dark"] .mh-singer svg { color: #7fb0ff; }

/* The ▶ / ⏸ icon turns together with the record */
.mh-player__btn svg { animation: mh-spin 3s linear infinite; animation-play-state: paused; transform-origin: 50% 50%; }
.mh-player.is-playing .mh-player__btn svg { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .mh-player__btn svg { animation: none; } }

/* Song picture on the record label */
.mh-player__label {
  position: absolute; left: 50%; top: 50%; width: 60%; height: 60%; transform: translate(-50%, -50%);
  border-radius: 50%; overflow: hidden; background: #0353f1; box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.mh-player__label img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-player__icon {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45);
  animation: mh-spin 3s linear infinite; animation-play-state: paused;
}
.mh-player__label:not(.has-img) + .mh-player__icon, .mh-player__vinyl:has(.mh-player__label:not(.has-img)) + .mh-player__icon { background: rgba(0, 0, 0, .28); }
.mh-player.is-playing .mh-player__icon { animation-play-state: running; }
.mh-player__btn .mh-player__icon svg { animation: none; width: 18px; height: 18px; color: #fff; }
.mh-player__btn .mh-ico-pause, .mh-player.is-playing .mh-player__btn .mh-ico-play { display: none; }
.mh-player.is-playing .mh-player__btn .mh-ico-pause { display: block; }
@media (prefers-reduced-motion: reduce) { .mh-player__icon { animation: none; } }
.mh-player__icon { width: 32px; height: 32px; background: rgba(0, 0, 0, .6); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.mh-player__vinyl:has(.mh-player__label:not(.has-img)) + .mh-player__icon { background: rgba(0, 0, 0, .3); box-shadow: none; }

/* ==========================================================================
   "Install app" banner
   ========================================================================== */
.mh-install {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9995; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px;
  background: #fff; border: 1px solid #dde3ef; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  animation: un-up .3s ease-out;
}
body.has-mini-player:not(.mh-mini-collapsed) .mh-install { bottom: 86px; }
body.mh-mini-collapsed .mh-install { right: 96px; }
.mh-install__icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.mh-install__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mh-install__text strong { font-size: 15px; color: #111; }
.mh-install__text span { font-size: 12.5px; color: #555; }
.mh-install__btn { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: #0353f1; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.mh-install__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #777; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mh-install__close:hover { background: #f1f3f8; }
[data-theme="dark"] .mh-install { background: #1d2025; border-color: #2f333a; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
[data-theme="dark"] .mh-install__text strong { color: #f3f1ec; }
[data-theme="dark"] .mh-install__text span { color: #a9a49a; }
[data-theme="dark"] .mh-install__btn { background: #3d94f6; }
[data-theme="dark"] .mh-install__close:hover { background: #2a2e35; }

/* Inside the installed app: no "install" nags, a little room for the phone's status bar */
html.is-app .mh-install { display: none; }

/* ==========================================================================
   Offline downloads
   ========================================================================== */
/* Header: downloads button (left of ♥) */
.main-nav { padding-right: 140px; }
.mh-dl-open {
  position: absolute; right: 96px; top: 7px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0;
  background: #0b3fc0; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; cursor: pointer;
}
.mh-dl-open:hover { background: #d858da; border-color: #d858da; }
.mh-dl-open .mh-fav-open__count { background: #12b76a; }
@media (max-width: 767px) { .mh-dl-open { top: 6px; width: 34px; height: 34px; right: 92px; } }

/* Round download button (song page, next to ♥) */
.mh-dl {
  --p: 0;
  position: relative; flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #dde3ef; border-radius: 50%; background: #fff; color: #0353f1;
}
.mh-dl:hover { border-color: #0353f1; }
.mh-dl__ring { position: absolute; inset: -1.5px; border-radius: 50%; display: none;
  background: conic-gradient(#0353f1 calc(var(--p) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 3px), #000 calc(50% - 2.5px));
          mask: radial-gradient(circle, transparent 0 calc(50% - 3px), #000 calc(50% - 2.5px)); }
.mh-dl__done { display: none; }
.mh-dl__pct { display: none; font-size: 10px; font-weight: 800; }
.mh-dl.is-loading .mh-dl__ring { display: block; }
.mh-dl.is-loading .mh-dl__icon { display: none; }
.mh-dl.is-loading .mh-dl__pct { display: inline; }
.mh-dl.is-done { background: #0353f1; border-color: #0353f1; color: #fff; }
.mh-dl.is-done .mh-dl__icon { display: none; }
.mh-dl.is-done .mh-dl__done { display: block; }
[data-theme="dark"] .mh-dl { background: #16181c; border-color: #3a3e46; color: #7fb0ff; }
[data-theme="dark"] .mh-dl__ring { background: conic-gradient(#3d94f6 calc(var(--p) * 360deg), transparent 0); }
[data-theme="dark"] .mh-dl.is-done { background: #3d94f6; border-color: #3d94f6; color: #fff; }

/* Wide version on the download page */
.mh-dl--wide { width: auto; height: auto; min-height: 50px; padding: 0 22px; gap: 10px; border-radius: 26px; font-size: 16px; font-weight: 700; }
.mh-dl--wide .mh-dl__ring { display: none !important; }
.mh-dl--wide.is-loading { background: linear-gradient(90deg, #e3ebff calc(var(--p) * 100%), #fff 0); }
.mh-dl--wide.is-loading .mh-dl__icon { display: inline; }
.page-template-page-download .download-wrap.download-offline { background: none; border: 0; padding: 6px 0 0; }
[data-theme="dark"] .mh-dl--wide.is-loading { background: linear-gradient(90deg, #23314d calc(var(--p) * 100%), #16181c 0); }

/* Downloads list */
.mh-dls__titles { flex: 1; min-width: 0; }
.mh-dls__titles h2 svg { stroke: #0353f1; fill: none; }
.mh-dls__sub { margin: 2px 0 0; font-size: 12px; color: #666; }
.mh-dls__sub:empty { display: none; }
button.mh-dlrow { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
button.mh-dlrow:hover { background: #e8eefc; }
.mh-favs__empty p { margin: 0 0 8px; }
[data-theme="dark"] .mh-dls__sub { color: #a9a49a; }
[data-theme="dark"] .mh-dls__titles h2 svg { stroke: #7fb0ff; }
[data-theme="dark"] button.mh-dlrow:hover { background: #262a31; }

/* Small message at the bottom ("Downloaded: …") */
.mh-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 10002; max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 22px; background: #15171b; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); animation: un-up .25s ease-out; transition: opacity .4s;
}
.mh-toast.is-out { opacity: 0; }
[data-theme="dark"] .mh-toast { background: #f3f1ec; color: #111; }

/* ==========================================================================
   Spotify-style: bottom navigation, sheets, Now Playing
   ========================================================================== */
.mh-tabbar { display: none; }
body.has-tabbar .mh-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9993; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.97); border-top: 1px solid #dde3ef;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mh-tabbar > a, .mh-tabbar > button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; color: #6b7280 !important; font-size: 11px; font-weight: 600; text-decoration: none !important; cursor: pointer;
}
.mh-tabbar > .is-active { color: #0353f1 !important; }
.mh-tabbar > .is-active svg { stroke-width: 2.4; }
.mh-tabbar b[data-dl-count] {
  position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #12b76a; color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
.mh-tabbar__dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: #f2a93b; }
[data-theme="dark"] body.has-tabbar .mh-tabbar { background: rgba(22,24,28,.97); border-color: #2f333a; }
[data-theme="dark"] .mh-tabbar > a, [data-theme="dark"] .mh-tabbar > button { color: #9aa0aa !important; }
[data-theme="dark"] .mh-tabbar > .is-active { color: #7fb0ff !important; }

/* Make room for the bar: page, mini player, bubble, banners */
body.has-tabbar { padding-bottom: 64px; }
body.has-tabbar.has-mini-player:not(.mh-mini-collapsed) { padding-bottom: 136px; }
body.has-tabbar .mh-mini { bottom: calc(60px + env(safe-area-inset-bottom)); }
body.has-tabbar .mh-mini.is-collapsed { bottom: calc(72px + env(safe-area-inset-bottom)); }
body.has-tabbar .mh-install { bottom: 72px; }
body.has-tabbar.has-mini-player:not(.mh-mini-collapsed) .mh-install { bottom: 146px; }
body.has-tabbar .un-overlay { bottom: 60px; }
body.has-tabbar .mh-toast { bottom: 150px; }
body.has-tabbar .mh-favs__sheet { bottom: calc(60px + env(safe-area-inset-bottom)); max-height: calc(100vh - 120px); border-radius: 16px 16px 0 0; }
body.has-tabbar .mh-favs { bottom: calc(60px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { body.has-tabbar .mh-favs__sheet { top: auto; transform: none; } }

/* Search sheet */
.mh-search { display: flex; gap: 8px; margin: 4px 2px 10px; }
.mh-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid #dde3ef; border-radius: 23px; font-size: 16px; background: #f4f6fb; color: #111; }
.mh-search input:focus { outline: none; border-color: #0353f1; background: #fff; }
.mh-search button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: #0353f1; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mh-search__label { margin: 8px 6px 4px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #6b7280; }
.mh-search__hint { margin: 16px 6px; color: #6b7280; text-align: center; }
.mh-search__more { display: block; width: calc(100% - 12px); margin: 10px 6px; min-height: 42px; border: 1px solid #dde3ef; border-radius: 21px; background: #fff; color: #0353f1; font-weight: 700; cursor: pointer; }
[data-theme="dark"] .mh-search input { background: #16181c; border-color: #3a3e46; color: #f3f1ec; }
[data-theme="dark"] .mh-search button { background: #3d94f6; }
[data-theme="dark"] .mh-search__more { background: #16181c; border-color: #2f333a; color: #7fb0ff; }

/* Library tabs */
.mh-libtabs { display: flex; gap: 6px; margin: 2px 2px 10px; overflow-x: auto; }
.mh-libtabs button { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid #dde3ef; border-radius: 18px; background: #fff; color: #333; font-weight: 700; font-size: 13px; cursor: pointer; }
.mh-libtabs button span { margin-left: 4px; color: #6b7280; font-weight: 600; }
.mh-libtabs button[aria-selected="true"] { background: #0353f1; border-color: #0353f1; color: #fff; }
.mh-libtabs button[aria-selected="true"] span { color: #dbe6ff; }
.mh-lib__playall { margin: 0 2px 8px; }
[data-theme="dark"] .mh-libtabs button { background: #16181c; border-color: #2f333a; color: #c9c6bf; }
[data-theme="dark"] .mh-libtabs button[aria-selected="true"] { background: #3d94f6; border-color: #3d94f6; color: #fff; }

/* More sheet */
.mh-more { display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 8px; }
.mh-more__group { padding: 10px 6px; border-bottom: 1px solid #e3e8f2; }
.mh-more__title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #111; }
.mh-more__title span { flex: 1; }
.mh-more__title em { font-style: normal; font-size: 13px; color: #0353f1; font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mh-chip { min-height: 36px; padding: 0 14px; border: 1px solid #dde3ef; border-radius: 18px; background: #fff; color: #333; font-size: 13px; font-weight: 700; cursor: pointer; }
.mh-chip.is-on { background: #0353f1; border-color: #0353f1; color: #fff; }
.mh-more__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 6px; border: 0; border-bottom: 1px solid #e3e8f2; background: none; color: #111; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.mh-more__row span { flex: 1; }
.mh-more__row svg { color: #0353f1; }
.mh-switch { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #c3c9d4; transition: background .2s; flex: none; }
.mh-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mh-more__row[aria-checked="true"] .mh-switch { background: #0353f1; }
.mh-more__row[aria-checked="true"] .mh-switch::after { transform: translateX(16px); }
.mh-more__about { display: flex; align-items: center; gap: 8px; margin: 10px 6px 0; font-size: 12px; color: #6b7280; }
[data-theme="dark"] .mh-more__group, [data-theme="dark"] .mh-more__row { border-color: #2f333a; }
[data-theme="dark"] .mh-more__title, [data-theme="dark"] .mh-more__row { color: #f3f1ec; }
[data-theme="dark"] .mh-more__title em, [data-theme="dark"] .mh-more__row svg { color: #7fb0ff; }
[data-theme="dark"] .mh-chip { background: #16181c; border-color: #2f333a; color: #c9c6bf; }
[data-theme="dark"] .mh-chip.is-on { background: #3d94f6; border-color: #3d94f6; color: #fff; }
[data-theme="dark"] .mh-switch { background: #4a4f58; }
[data-theme="dark"] .mh-more__row[aria-checked="true"] .mh-switch { background: #3d94f6; }

/* ---------- Now Playing ---------- */
.mh-np {
  position: fixed; inset: 0; z-index: 10003; display: flex; flex-direction: column; gap: 14px;
  padding: calc(10px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0b3fc0 0%, #062a85 55%, #041a52 100%); color: #fff;
  transform: translateY(100%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s .32s;
  overflow-y: auto;
}
.mh-np.is-open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
body.mh-np-open { overflow: hidden; }
.mh-np__top { display: flex; align-items: center; justify-content: space-between; }
.mh-np__label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; opacity: .85; }
.mh-np__icon { position: relative; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.mh-np__icon:hover { background: rgba(255,255,255,.12); }
.mh-np__icon:disabled { opacity: .35; }
.mh-np__icon.is-on { color: #f2a93b; }
.mh-np__icon b { display: none; position: absolute; top: 8px; right: 6px; font-size: 9px; width: 13px; height: 13px; line-height: 13px; border-radius: 50%; background: #f2a93b; color: #111; }
.mh-np__icon.is-one b { display: block; }
.mh-np__main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.mh-np__art { width: min(78vw, 360px, 46vh); aspect-ratio: 1; }
.mh-np__disc {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%;
  background:
    conic-gradient(from 20deg, transparent 0 40deg, rgba(255,255,255,.14) 55deg, transparent 75deg 220deg, rgba(255,255,255,.08) 235deg, transparent 255deg),
    repeating-radial-gradient(circle, #141414 0 2px, #262626 2px 4px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  animation: mh-spin 6s linear infinite; animation-play-state: paused;
}
.mh-np.is-playing .mh-np__disc { animation-play-state: running; }
.mh-np__disc > img, .mh-np__letter {
  position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; transform: translate(-50%, -50%);
  border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255,255,255,.85);
}
.mh-np__letter { display: flex; align-items: center; justify-content: center; font-size: clamp(40px, 12vw, 72px); font-weight: 800; color: #111; }
.mh-np__disc::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #041a52; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.mh-np__queue { width: 100%; max-height: 100%; overflow-y: auto; background: rgba(255,255,255,.96); border-radius: 14px; padding: 8px; color: #111; }
.mh-np__meta { display: flex; align-items: center; gap: 12px; }
.mh-np__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mh-np__titles strong { font-size: 22px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-np__titles span { font-size: 14px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-np__fav { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.mh-np__fav svg { stroke: #fff; }
.mh-np__fav[aria-pressed="true"] { background: #fff; border-color: #fff; }
.mh-np__fav[aria-pressed="true"] svg { stroke: #ff3b5c; fill: #ff3b5c; }
.mh-np__seek input {
  --p: 0%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 10px 0; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--p), rgba(255,255,255,.28) var(--p));
}
.mh-np__seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mh-np__seek input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.mh-np__times { display: flex; justify-content: space-between; font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.mh-np__controls { display: flex; align-items: center; justify-content: space-between; }
.mh-np__play { width: 72px; height: 72px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: #0b3fc0; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.mh-np__play svg { width: 30px; height: 30px; }
.mh-np__play .mh-ico-pause, .mh-np.is-playing .mh-np__play .mh-ico-play { display: none; }
.mh-np.is-playing .mh-np__play .mh-ico-pause { display: block; }
.mh-np__bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mh-np__chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff !important; font-size: 11px; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.mh-np__chip svg { width: 20px; height: 20px; }
.mh-np__chip em { font-style: normal; font-size: 10px; color: #f2a93b; font-variant-numeric: tabular-nums; }
.mh-np__chip em:empty { display: none; }
.mh-np__chip.is-on { background: rgba(255,255,255,.22); color: #f2a93b !important; }
.mh-np__chip.is-on svg { stroke: #f2a93b; }
@media (prefers-reduced-motion: reduce) { .mh-np, .mh-np.is-open { transition: none; } .mh-np__disc { animation: none; } }
[data-theme="dark"] .mh-np { background: linear-gradient(180deg, #1b2440 0%, #11162a 55%, #0b0d14 100%); }
[data-theme="dark"] .mh-np__queue { background: #1d2025; color: #f3f1ec; }
/* Sheets opened from Now Playing must sit above it */
.mh-sheet { z-index: 10005; }
body.mh-np-open .mh-sheet .mh-favs__sheet, body.mh-np-open .mh-sheet { bottom: 0; }
/* Now Playing seek bar: undo the old theme's input box styles */
.mh-np .mh-np__seek input[type="range"],
[data-theme="dark"] .mh-np .mh-np__seek input[type="range"] {
  box-sizing: border-box; display: block; width: 100%; height: 4px; margin: 12px 0 8px; padding: 0;
  border: 0 !important; border-radius: 2px; box-shadow: none; outline-offset: 6px;
  background: linear-gradient(90deg, #fff var(--p), rgba(255,255,255,.28) var(--p)) !important;
}
.mh-np__seek { width: 100%; }
.mh-libtabs button { padding: 0 11px; font-size: 12.5px; }
.mh-np .mh-np__seek { display: block !important; }
.mh-np .mh-np__times { width: 100%; }
