/* === Favorite Toggle Button (VOD player + cards) === */

.favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: var(--bg-secondary);
    border: var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform 0.15s;
    flex-shrink: 0;
}

html:not([data-theme="dark"]) .favorite-toggle {
    background: rgba(224, 92, 148, 0.16);
    border: 1px solid rgba(224, 92, 148, 0.5);
    color: #c93e7d;
    box-shadow: 0 10px 24px rgba(224, 92, 148, 0.22);
}

html:not([data-theme="dark"]) #favorite-toggle {
    background: rgba(224, 92, 148, 0.16);
    border: 1px solid rgba(224, 92, 148, 0.5);
    color: #c93e7d;
    box-shadow: 0 10px 24px rgba(224, 92, 148, 0.22);
}

.favorite-toggle:hover {
    color: #e05c94;
    border-color: rgba(224, 92, 148, 0.35);
    background: rgba(224, 92, 148, 0.08);
    transform: scale(1.08);
}

.favorite-toggle.is-favorite {
    color: #e05c94;
    background: rgba(224, 92, 148, 0.1);
    border-color: rgba(224, 92, 148, 0.35);
}

.favorite-toggle.is-favorite svg {
    fill: #e05c94;
}

.favorite-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentcolor;
    transition: fill var(--transition);
}

.favorite-toggle-card {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 3;
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html:not([data-theme="dark"]) .favorite-toggle-card {
    background: rgba(255, 244, 249, 0.96);
    border-color: rgba(224, 92, 148, 0.4);
}

html:not([data-theme="dark"]) .favorite-toggle:hover,
html:not([data-theme="dark"]) #favorite-toggle:hover,
html:not([data-theme="dark"]) .favorite-toggle:focus-visible,
html:not([data-theme="dark"]) #favorite-toggle:focus-visible,
html:not([data-theme="dark"]) .favorite-toggle.is-favorite,
html:not([data-theme="dark"]) #favorite-toggle.is-favorite {
    background: #e05c94;
    border-color: #e05c94;
    color: #fff7fb;
    box-shadow: 0 14px 28px rgba(224, 92, 148, 0.3);
}

html:not([data-theme="dark"]) .favorite-toggle.is-favorite svg,
html:not([data-theme="dark"]) #favorite-toggle.is-favorite svg,
html:not([data-theme="dark"]) .favorite-toggle:hover svg,
html:not([data-theme="dark"]) #favorite-toggle:hover svg,
html:not([data-theme="dark"]) .favorite-toggle:focus-visible svg,
html:not([data-theme="dark"]) #favorite-toggle:focus-visible svg {
    fill: currentcolor;
}

/* === Favorite Text Button (VOD player controls row) === */

.favorite-toggle-text {
    width: auto;
    height: auto;
    padding: 0.3rem 0.65rem;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(224, 92, 148, 0.1);
    border: 1px solid rgba(224, 92, 148, 0.32);
    color: #c93e7d;
    border-radius: var(--radius);
}

[data-theme="dark"] .favorite-toggle-text {
    background: rgba(224, 92, 148, 0.12);
    border-color: rgba(224, 92, 148, 0.28);
    color: #f0a0c4;
}

.favorite-toggle-text svg {
    width: 14px;
    height: 14px;
}

.favorite-toggle-text:hover {
    background: rgba(224, 92, 148, 0.2);
    border-color: rgba(224, 92, 148, 0.5);
    transform: none;
}

.favorite-toggle-text.is-favorite {
    background: rgba(224, 92, 148, 0.18);
    border-color: rgba(224, 92, 148, 0.5);
    box-shadow: 0 0 12px rgba(224, 92, 148, 0.35);
}

.favorite-toggle-text.is-favorite svg {
    fill: currentcolor;
}

/* Favorite heart overlay on VOD cards */
.vod-card-favorite-indicator {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border-radius: calc(var(--radius) - 2px);
    pointer-events: none;
}

.vod-card-favorite-indicator svg {
    width: 12px;
    height: 12px;
    fill: #e05c94;
    stroke: #e05c94;
}

/* === Favorite count badge (inside favorite-toggle-text buttons) === */

.fav-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25em;
    padding: 0.05rem 0.3rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
