.header-favorites {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(219, 234, 254, .92));
    box-shadow: inset 0 1px 1px #fff, 0 5px 16px rgba(37, 99, 235, .14);
    transition: transform .18s ease, box-shadow .18s ease;
}

.header-favorites:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 1px #fff, 0 9px 22px rgba(37, 99, 235, .24);
}

.header-favorites svg,
.ttr-favorite-toggle svg {
    width: 22px;
    height: 22px;
    fill: rgba(191, 219, 254, .5);
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-favorites .ice-crack,
.ttr-favorite-toggle .ice-crack {
    fill: none;
    stroke-width: 1.15;
    opacity: .85;
}

.header-favorites-count {
    position: absolute;
    right: -4px;
    top: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0f172a;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.ttr-favorite-card {
    position: relative !important;
}

.ttr-favorite-host {
    position: relative !important;
}

.ttr-favorite-toggle {
    position: absolute;
    z-index: 20;
    left: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    border: 1px solid rgba(191, 219, 254, .95);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .98) 0 13%, transparent 14%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(186, 230, 253, .9));
    box-shadow: inset 0 1px 2px #fff, 0 6px 18px rgba(14, 116, 144, .25);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}

.ttr-favorite-toggle::after {
    content: "❄";
    position: absolute;
    right: -2px;
    bottom: -4px;
    color: #38bdf8;
    font-size: 13px;
    filter: drop-shadow(0 1px 1px #fff);
}

.ttr-favorite-toggle:hover {
    transform: scale(1.08);
    box-shadow: inset 0 1px 2px #fff, 0 9px 24px rgba(14, 116, 144, .34);
}

.ttr-favorite-toggle.is-favorite {
    color: #0369a1;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .98) 0 12%, transparent 13%),
        linear-gradient(145deg, #e0f2fe, #67e8f9);
    border-color: #38bdf8;
}

.ttr-favorite-toggle.is-favorite svg {
    fill: rgba(14, 165, 233, .8);
}

.ttr-favorite-toggle.is-pending {
    pointer-events: none;
    opacity: .6;
}

.ttr-favorite-detail {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
}

@media (max-width: 768px) {
    .header-favorites {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .header-favorites-count {
        right: -5px;
    }
}
