[data-mediahub-player] {
  --mh-accent: #8b5cf6;
  --mh-accent-deep: #6d28d9;
  --mh-card: #1c1928;
  --mh-card-2: #251f38;
  --mh-ink: #f5f3fc;
  --mh-muted: #a49ec4;
  --mh-line: rgba(255, 255, 255, 0.09);
  --mh-hover: rgba(255, 255, 255, 0.08);
  --mh-radius: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  color: var(--mh-ink);
  font-family: inherit;
  line-height: 1.5;
  position: relative;
}

[data-mediahub-player] * {
  box-sizing: border-box;
}

.mh-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mh-player__sentinel {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  pointer-events: none;
}

.mh-player__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--mh-radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(150deg, var(--mh-card) 0%, var(--mh-card-2) 100%);
  box-shadow: 0 18px 50px rgba(18, 12, 44, 0.35);
  padding: 18px 18px 16px;
  isolation: isolate;
}

.mh-player__backdrop {
  position: absolute;
  inset: -70px;
  z-index: -1;
  pointer-events: none;
}

.mh-player__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(46px) saturate(1.5);
  opacity: 0.45;
  transform: scale(1.25);
}

.mh-player__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(28, 25, 40, 0.42) 0%, rgba(28, 25, 40, 0.9) 82%);
}

.mh-player__head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.mh-player__cover {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 16px;
  overflow: hidden;
  background: #2b2445;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
}

.mh-player__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mh-player__cover--empty {
  display: grid;
  place-items: center;
  color: var(--mh-accent);
}

.mh-player__cover--empty svg {
  width: 44px;
  height: 44px;
  opacity: 0.85;
}

.mh-player__info {
  flex: 1;
  min-width: 0;
}

.mh-player__titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mh-player__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mh-player__artist {
  color: var(--mh-muted);
  font-size: 0.86rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.mh-player__flags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.mh-player__badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mh-accent);
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.mh-player__minibtn {
  margin-inline-start: auto;
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--mh-line);
  border-radius: 10px;
  background: var(--mh-hover);
  color: var(--mh-ink);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mh-player__minibtn svg {
  width: 16px;
  height: 16px;
}

.mh-player__minibtn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mh-player__minibtn:active {
  transform: scale(0.94);
}

.mh-player__eq,
.mh-player__row-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex: none;
}

.mh-player__eq i,
.mh-player__row-bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--mh-accent);
  animation: mh-eq 0.9s ease-in-out infinite;
}

.mh-player__eq i:nth-child(2),
.mh-player__row-bars i:nth-child(2) {
  animation-delay: 0.2s;
}

.mh-player__eq i:nth-child(3),
.mh-player__row-bars i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes mh-eq {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.is-playing .mh-player__eq {
  display: flex;
}

.mh-player__audio {
  display: none;
}

.mh-player__timeline {
  position: relative;
  margin-top: 14px;
}

.mh-player__timeline input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg,
    var(--mh-accent) 0%,
    var(--mh-accent) var(--mh-fill, 0%),
    rgba(255, 255, 255, 0.3) var(--mh-fill, 0%),
    rgba(255, 255, 255, 0.3) var(--mh-buf, 0%),
    rgba(255, 255, 255, 0.14) var(--mh-buf, 0%));
  outline: none;
  cursor: pointer;
  direction: ltr;
}

.mh-player__timeline input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mh-player__timeline input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mh-player__timeline input::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--mh-accent);
}

.mh-player__timeline input:hover::-webkit-slider-thumb,
.mh-player__timeline input:focus-visible::-webkit-slider-thumb,
.mh-player__timeline input:active::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1.1);
}

.mh-player__timeline input:hover::-moz-range-thumb,
.mh-player__timeline input:focus-visible::-moz-range-thumb,
.mh-player__timeline input:active::-moz-range-thumb {
  opacity: 1;
  transform: scale(1.1);
}

.mh-player__times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--mh-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.mh-player__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.mh-player__spacer {
  flex: 1;
}

.mh-player__ctl {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mh-ink);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.mh-player__ctl svg {
  width: 20px;
  height: 20px;
}

.mh-player__ctl:hover {
  background: var(--mh-hover);
}

.mh-player__ctl:active {
  transform: scale(0.92);
}

.mh-player__ctl--sm {
  width: 34px;
  height: 34px;
}

.mh-player__ctl--sm svg {
  width: 17px;
  height: 17px;
}

.mh-player__ctl--text {
  position: relative;
  color: var(--mh-muted);
}

.mh-player__ctl--text[aria-expanded="true"],
.mh-player__ctl--text:hover {
  color: var(--mh-accent);
}

.mh-player__ctl--play {
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(135deg, var(--mh-accent) 0%, var(--mh-accent-deep) 100%);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.42);
}

.mh-player__ctl--play:hover {
  background: linear-gradient(135deg, #9d71f8 0%, var(--mh-accent-deep) 100%);
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.55);
}

.mh-player__ctl--play:active {
  transform: scale(0.96);
}

.mh-player__ctl--play svg {
  width: 24px;
  height: 24px;
}

.mh-player__icon {
  display: none;
  line-height: 0;
}

[data-mediahub-player]:not(.is-playing) .mh-player__icon--play {
  display: block;
}

[data-mediahub-player].is-playing .mh-player__icon--pause {
  display: block;
}

[data-mediahub-player]:not(.is-muted) .mh-player__icon--vol {
  display: block;
}

[data-mediahub-player].is-muted .mh-player__icon--muted {
  display: block;
}

.mh-player__volume {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mh-player__volume input {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 5px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg,
    var(--mh-accent) 0%,
    var(--mh-accent) var(--mh-fill, 100%),
    rgba(255, 255, 255, 0.14) var(--mh-fill, 100%));
  outline: none;
  cursor: pointer;
  direction: ltr;
}

.mh-player__volume input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.mh-player__volume input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}




.mh-player__lyrics {
  margin-top: 14px;
  border: 1px solid var(--mh-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.mh-player__lyrics-scroll {
  max-height: 190px;
  overflow-y: auto;
  padding: 14px 18px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.mh-player__lyrics-scroll p {
  margin: 0 0 9px;
  color: var(--mh-muted);
  font-size: 0.88rem;
  line-height: 1.9;
  transition: color 0.2s ease;
}

.mh-player__lyrics-scroll p:last-child {
  margin-bottom: 2px;
}

.mh-player__lyrics--sync .mh-player__lyrics-scroll p {
  cursor: pointer;
}

.mh-player__lyrics--sync .mh-player__lyrics-scroll p:hover {
  color: var(--mh-ink);
}

.mh-player__lyrics-scroll p.is-past {
  color: rgba(164, 158, 196, 0.55);
}

.mh-player__lyrics-scroll p.is-active {
  color: #fff;
  font-weight: 700;
}

.mh-player__playlist {
  margin-top: 14px;
  border-top: 1px solid var(--mh-line);
  padding-top: 12px;
}

.mh-player__playlist-head {
  margin-bottom: 6px;
  color: var(--mh-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mh-player__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 224px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mh-player__row-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--mh-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mh-player__row-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mh-player__row.is-active .mh-player__row-btn {
  background: rgba(139, 92, 246, 0.18);
}

.mh-player__row-num {
  flex: none;
  min-width: 20px;
  text-align: center;
  color: var(--mh-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.mh-player__row.is-active .mh-player__row-num {
  display: none;
}

.mh-player__row.is-active .mh-player__row-bars {
  display: flex;
  min-width: 20px;
}

.mh-player__row-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mh-player__row-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-player__row-sub {
  color: var(--mh-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-player__row.is-active .mh-player__row-title {
  color: var(--mh-accent);
}

.mh-player--video .mh-player__card {
  padding: 10px;
}

.mh-player__video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

.mh-player__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mh-player__meta {
  padding: 12px 6px 4px;
}

.mh-player__meta strong {
  font-size: 0.95rem;
}

.mh-player__meta span {
  display: block;
  color: var(--mh-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.mh-player--video .mh-player__quality {
  padding: 0 6px 8px;
}

.mh-dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1300;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  padding-bottom: 10px;
}

.mh-dock.is-open {
  display: flex;
}

body.mh-dock-open {
  padding-bottom: 86px;
}

.mh-dock__bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(720px, calc(100% - 24px));
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 19, 33, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(10, 6, 24, 0.55);
  color: var(--mh-ink);
}

.mh-dock__progress {
  position: absolute;
  inset-inline: 16px;
  top: -1px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.mh-dock__progress i {
  display: block;
  width: var(--mh-fill, 0%);
  height: 100%;
  border-radius: 999px;
  background: var(--mh-accent);
}

.mh-dock__thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  padding: 0;
  border-radius: 11px;
  overflow: hidden;
  background: #2b2445;
  cursor: pointer;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
}

.mh-dock__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mh-dock__meta {
  flex: 1;
  min-width: 0;
}

.mh-dock__title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-dock__sub {
  margin-top: 1px;
  color: var(--mh-muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-dock__ctl {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mh-ink);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mh-dock__ctl svg {
  width: 18px;
  height: 18px;
}

.mh-dock__ctl:hover {
  background: var(--mh-hover);
}

.mh-dock__ctl:active {
  transform: scale(0.92);
}

.mh-dock__ctl--play {
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--mh-accent) 0%, var(--mh-accent-deep) 100%);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.45);
}

.mh-dock__ctl--play svg {
  width: 20px;
  height: 20px;
}

.mh-dock__ctl--play:hover {
  transform: scale(1.06);
}

.mh-dock .mh-player__icon {
  display: none;
}

.mh-dock:not(.is-playing) .mh-player__icon--play {
  display: block;
}

.mh-dock.is-playing .mh-player__icon--pause {
  display: block;
}

.mh-dock__panel {
  pointer-events: auto;
  width: min(560px, calc(100% - 24px));
  max-height: min(72vh, 600px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(8, 4, 20, 0.6);
}

.mh-dock__panel .mh-player {
  margin: 0;
}

.mh-player.is-docked .mh-player__card {
  border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .mh-player__eq i,
  .mh-player__row-bars i {
    animation: none;
    height: 6px;
  }

  .mh-player__lyrics-scroll {
    scroll-behavior: auto;
  }
}

@media (max-width: 560px) {
  .mh-player__controls {
    justify-content: center;
  }

  .mh-player__spacer {
    flex-basis: 100%;
    height: 0;
  }

  .mh-player__card {
    padding: 14px 14px 13px;
    border-radius: 16px;
  }

  .mh-player__head {
    gap: 12px;
  }

  .mh-player__cover {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
    border-radius: 13px;
  }

  .mh-player__title {
    font-size: 0.95rem;
  }

  .mh-player__ctl--play {
    width: 46px;
    height: 46px;
  }

  .mh-player__volume input {
    width: 62px;
  }

  .mh-player__row-btn {
    padding: 8px 9px;
  }

  .mh-dock__bar {
    width: calc(100% - 16px);
    gap: 9px;
  }

  .mh-dock__thumb {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .mh-dock__panel {
    width: calc(100% - 16px);
  }
}

.mh-player__dur {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.mh-player__dur:hover {
  color: var(--mh-ink);
}

.mh-player__seektip {
  position: absolute;
  bottom: calc(100% - 4px);
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  white-space: nowrap;
}

.mh-player__seektip[hidden],
.mh-player__ab[hidden] {
  display: none;
}

.mh-player__ab {
  position: absolute;
  top: 0;
  height: 6px;
  min-width: 3px;
  border-radius: 3px;
  background: rgba(250, 204, 21, 0.85);
  pointer-events: none;
  z-index: 1;
}

.mh-player__ctl--text.is-on {
  color: var(--mh-accent);
  background: rgba(139, 92, 246, 0.16);
}

.mh-player__ctl[data-repeat][data-mode="one"]::after {
  content: '1';
  position: absolute;
  inset-block-end: 3px;
  inset-inline-end: 3px;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--mh-accent);
}

.mh-player__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.mh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--mh-ink);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mh-chip svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.mh-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--mh-ink);
}

.mh-chip.is-on,
.mh-chip[aria-expanded="true"] {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.22);
  color: #fff;
}

.mh-player__toolpanel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--mh-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.mh-player__toolpanel[hidden] {
  display: none;
}

.mh-pill {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--mh-ink);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mh-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mh-pill.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--mh-accent) 0%, var(--mh-accent-deep) 100%);
  color: #fff;
  font-weight: 700;
}

.mh-player__ctl:focus-visible,
.mh-chip:focus-visible,
.mh-pill:focus-visible,
.mh-player__row-btn:focus-visible,
.mh-player__dur:focus-visible {
  outline: 2px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-player__quality {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.mh-player__quality[hidden] {
  display: none;
}

.mh-player--video .mh-player__quality {
  margin: 0 6px 8px;
}

.mh-q {
  min-width: 42px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mh-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mh-q:hover {
  color: var(--mh-ink);
}

.mh-q.is-active {
  background: linear-gradient(135deg, var(--mh-accent) 0%, var(--mh-accent-deep) 100%);
  color: #fff;
}

.mh-q:focus-visible {
  outline: 2px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-player__downloads {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mh-chip--dl {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.mh-player__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.mh-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--mh-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mh-ink);
  font-size: 0.7rem;
  line-height: 1.7;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

a.mh-tag:hover {
  background: rgba(139, 92, 246, 0.28);
  color: #fff;
}

.mh-player__body {
  margin-top: 14px;
  border: 1px solid var(--mh-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.mh-player__body[hidden] {
  display: none;
}

.mh-player__body-inner {
  max-height: 260px;
  overflow-y: auto;
  padding: 14px 18px;
  color: var(--mh-muted);
  font-size: 0.88rem;
  line-height: 2;
  overscroll-behavior: contain;
}

.mh-player__body-inner p {
  margin: 0 0 9px;
}

.mh-player__body-inner a {
  color: var(--mh-accent);
}

.mh-player__body-inner img {
  max-width: 100%;
  height: auto;
}

.mh-player__lyrics[hidden] {
  display: none;
}

.mh-player__lyrics-scroll p {
  text-align: center;
}


/* ---- Body summary under the title ---- */
.mh-player__summary {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--mh-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Like (flag) button inside the player box ---- */
.mh-player__like {
  display: inline-flex;
  align-items: center;
}

.mh-player__meta .mh-player__like {
  display: inline-flex;
  margin-top: 8px;
}

.mh-player__like .flag,
.mh-player__like a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mh-accent);
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mh-player__like .flag::before,
.mh-player__like a::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mh-player__like .flag:hover,
.mh-player__like a:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

.mh-player__like .flag:active,
.mh-player__like a:active {
  transform: scale(0.95);
}

.mh-player__like .flag.action-unflag,
.mh-player__like a.action-unflag {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.42);
}

.mh-player__like .flag.action-unflag:hover,
.mh-player__like a.action-unflag:hover {
  background: rgba(251, 113, 133, 0.28);
  color: #fff;
}


/* Shared MediaHub controls are used for both audio and video. */
.mh-player--video .mh-player__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 12px;
}
.mh-player--video .mh-player__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.mh-player--video .mh-player__timeline {
  margin-top: 14px;
}
.mh-player--video .mh-player__meta {
  padding: 10px 4px 0;
}
.mh-player--video .mh-player__meta:empty {
  display: none;
}
.mh-player--video .mh-player__video-wrap:fullscreen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  margin: 0;
}
.mh-player--video .mh-player__video-wrap:fullscreen .mh-player__video {
  width: 100%;
  height: 100%;
}
