.hmp-favorite,
.hmt-favorite {
    color: #fff;
}

.hmp-favorite:hover,
.hmp-favorite:focus-visible,
.hmt-favorite:hover,
.hmt-favorite:focus-visible {
    color: #c8aa6a;
}

.hmp-favorite[aria-pressed="true"],
.hmt-favorite[aria-pressed="true"] {
    color: #e21b2d;
}

.hmp-favorite.is-favorite-loading,
.hmt-favorite.is-favorite-loading {
    opacity: 0.68;
}

.hmp-favorite.is-favorite-error,
.hmt-favorite.is-favorite-error {
    color: #ff5260;
}

.hmf-cover-stack {
    grid-area: cover;
    display: grid;
    gap: 10px;
    align-self: start;
    min-width: 0;
}

.hmf-cover-stack .album-primary-cover {
    grid-area: auto;
}

.hmf-cover-stack [data-hasera-primary-cover][hidden] {
    display: none !important;
}

.hmf-token-notice {
    justify-self: stretch;
    margin: 0 0 2px;
    padding: 8px 12px;
    border: 1px solid rgba(213, 182, 111, .48);
    background: rgba(25, 22, 13, .82);
    color: #e2cb83;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.hmf-summary {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 30px;
    color: rgba(142, 142, 142, 0.96);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hmf-summary[hidden] {
    display: inline-flex;
    visibility: hidden;
}

.hmf-summary-heart {
    color: rgba(142, 142, 142, 0.96);
    font-size: 19px;
    line-height: 1;
}

.hmf-summary:hover,
.hmf-summary:focus-visible,
.hmf-summary:hover .hmf-summary-heart,
.hmf-summary:focus-visible .hmf-summary-heart {
    color: #2aff58;
}

.hmf-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 10px;
}

.hmf-facts {
    gap: 8px;
}

.hmf-facts span,
.hmf-facts strong,
.hmf-facts [data-hasera-favorites-count],
.hmf-facts .hmf-facts-count,
.hmf-facts .hmf-facts-label {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hmf-facts .hmf-facts-count {
    color: inherit;
    font: inherit;
    font-weight: 900;
}

.hmf-facts .hmf-facts-label {
    color: inherit;
    text-transform: uppercase;
}

.hmf-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(200, 170, 106, 0.42);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.hmf-tool-button:hover,
.hmf-tool-button:focus-visible {
    color: #2aff58;
    border-color: rgba(42, 255, 88, 0.5);
}

.hmf-tool-danger {
    border-color: rgba(226, 27, 45, 0.72);
}

.hmf-tool-danger:hover,
.hmf-tool-danger:focus-visible {
    color: #fff;
    background: rgba(226, 27, 45, 0.28);
}

.hmf-message {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.hmf-message.is-error {
    color: #ff5260;
}

.hmt-track-card.is-selected-favorite .hmt-track-cover {
    outline: 0;
    box-shadow:
        0 32px 82px rgba(0, 0, 0, 0.9),
        0 18px 40px rgba(32, 32, 32, 0.78);
}

.hmf-stage .album-scene {
    align-items: start;
    transform: translateY(-1cm);
}

/* The Favorites gallery owns its complete visual background.  Extend that
   background behind the shared public header without moving the gallery
   content, so the same module renders identically outside and inside Club. */
.is-template-favorites .topbar,
.is-club-front:has(.club-scene[data-club-scene="favorites"]:not([hidden])) .topbar {
    z-index: 20;
    background: transparent;
    backdrop-filter: none;
}

.is-template-favorites .hmf-stage,
.is-club-front .club-scene[data-club-scene="favorites"] .hmf-stage {
    overflow: visible;
}

.is-template-favorites .hmf-stage::before,
.is-template-favorites .hmf-stage::after,
.is-club-front .club-scene[data-club-scene="favorites"] .hmf-stage::before,
.is-club-front .club-scene[data-club-scene="favorites"] .hmf-stage::after,
.is-template-favorites .hmf-stage .album-backdrop,
.is-club-front .club-scene[data-club-scene="favorites"] .hmf-stage .album-backdrop {
    top: -220px;
}

.hmf-track-gallery {
    align-self: start;
}

.hmf-favorites-page .album-primary-cover[disabled] {
    cursor: default;
}

.hmf-favorites-page.is-remove-mode .hmf-track-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: min(680px, 100%);
}

.hmf-remove-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 36px;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.hmf-remove-row:hover,
.hmf-remove-row:focus-within,
.hmf-remove-row.is-selected {
    border-color: rgba(42, 255, 88, 0.56);
    background: rgba(0, 0, 0, 0.62);
}

.hmf-remove-cover {
    display: block;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 4px;
    background: #080808;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.66);
}

.hmf-remove-cover img,
.hmf-remove-cover-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

.hmf-remove-cover img {
    object-fit: cover;
}

.hmf-remove-cover-fallback {
    display: grid;
    place-items: center;
    color: #c8aa6a;
    font-size: 18px;
    font-weight: 900;
}

.hmf-remove-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hmf-remove-info strong {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmf-remove-info span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmf-remove-info small {
    color: #2aff58;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.hmf-remove-choice {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    justify-self: end;
    appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.hmf-remove-choice::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
}

.hmf-remove-choice[aria-pressed="true"] {
    border-color: #e21b2d;
}

.hmf-remove-choice[aria-pressed="true"]::before {
    background: #e21b2d;
}

@media (max-width: 560px) {
    .hmf-remove-row {
        grid-template-columns: 60px minmax(0, 1fr) 32px;
        gap: 10px;
        padding: 8px;
    }

    .hmf-remove-cover {
        width: 60px;
        height: 60px;
    }
}
