.vmfav-btn {
    border: 1px solid rgba(177, 27, 66, 0.4);
    background: transparent;
    color: #b11b42;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1;
    transition: all 0.2s ease;
}

.vmfav-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
}

.vmfav-icon-only {
    padding: 0;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vmfav-icon-only .vmfav-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.vmfav-btn:hover {
    background: rgba(177, 27, 66, 0.08);
    border-color: #b11b42;
    transform: scale(1.05);
}

.vmfav-btn.is-favorite {
    background: #b11b42;
    color: #ffffff;
    border-color: #b11b42;
}

.vmfav-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.vmfav-content-button {
    margin-top: 18px;
}

.vmfav-content-button.vmfav-in-header {
    margin-top: 0;
    margin-left: 10px;
    display: inline-flex;
    vertical-align: middle;
}

.iva-np-title .vmfav-header-heart {
    border: 0;
    background: transparent;
    color: #e0245e;
    padding: 0;
    min-width: auto;
    width: auto;
    height: auto;
    font-size: 15px;
    line-height: 1;
    box-shadow: none;
}

.iva-np-title .vmfav-header-heart .vmfav-icon {
    font-size: 18px;
    line-height: 1;
}

.iva-np-title .vmfav-header-heart:hover {
    background: transparent;
    color: #ff4f86;
    transform: scale(1.08);
}

.iva-np-title .vmfav-header-heart.is-favorite {
    background: transparent;
    color: #ff2f72;
}

.vmfav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.vmfav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px 12px;
}

.vmfav-link {
    font-weight: 600;
    color: #ffd17a;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    min-width: 200px;
    max-width: 600px;
    color: #ffd17a !important;
}

.vmfav-item .vmfav-btn {
    font-size: 12px;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.vmfav-item .vmfav-text {
    display: none !important;
}


.vmfav-menu-item .vmfav-menu-link:hover {
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    opacity: 1 !important;
}

.vmfav-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vmfav-panel-shell {
    width: max-content;
    min-width: 380px;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #141417 0%, #101014 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.vmfav-panel-content {
    padding: 16px 18px 20px;
    max-height: 85vh;
    overflow: auto;
    color: #f2f2f2;
}

.vmfav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.vmfav-panel-header h3 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.vmfav-panel-close {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.vmfav-panel-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
    color: #fff;
}

.vmfav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.vmfav-tab {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #d7d7d7;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    min-width: 132px;
    text-align: center;
    line-height: 1.2;
}

.vmfav-tab.is-active {
    border-color: #e0245e;
    background: rgba(224, 36, 94, 0.18);
    color: #ff5c8b;
}

.vmfav-tab-count {
    margin-left: 6px;
    font-weight: 700;
    color: inherit;
}

.vmfav-tab-panel {
    display: none;
}

.vmfav-tab-panel.is-active {
    display: block;
}

.vmfav-loading {
    margin: 8px 0;
}

.album-playlist .mp3options .vmfav-song-mini {
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.album-playlist .mp3options .vmfav-song-mini::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: rgba(14, 16, 24, 0.96);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 30;
}

.album-playlist .mp3options .vmfav-song-mini:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-12px);
}

.vmfav-item .vmfav-inline-remove {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    min-width: auto !important;
    box-shadow: none !important;
    transform: none !important;
}

.vmfav-item .vmfav-inline-remove:hover {
    color: #ff2f72 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50% !important;
}

.vmfav-item .vmfav-inline-remove .vmfav-icon svg {
    width: 16px;
    height: 16px;
}

/* Decouple action-zone hover from track-title hover effects */
.album-playlist li.vmfav-hover-actions .track-title,
.album-playlist li.vmfav-hover-actions a.fap-single-track {
    text-decoration: none !important;
    color: inherit !important;
}

.vmfav-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(177, 27, 66, 0.95);
    color: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.vmfav-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vmfav-thumb-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    pointer-events: auto;
}

.vmfav-thumb-icon {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.vmfav-thumb-icon:hover {
    background: #b11b42 !important;
    border-color: #b11b42 !important;
}

.vmfav-thumb-icon.is-favorite {
    background: #e0245e !important;
    border-color: #e0245e !important;
}

.port_img, .custompost_thumb {
    position: relative;
}
