/* Native DLE favourites: card controls, player control and guest sign-in dialog. */
.ua-card-poster-link { display: block; }
.ua-card-wrap .ua-card-poster-link > img { display: block; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.ua-card-link { display: block; color: inherit; text-decoration: none; }
.ua-favorite-button,
.ua-favorite-player {
    border: 0;
    font: inherit;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.ua-favorite-button {
    position: absolute;
    z-index: 12;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(20, 28, 35, .9);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .34);
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
.ua-card-wrap:hover .ua-favorite-button,
.ua-card-wrap:focus-within .ua-favorite-button { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ua-favorite-button:hover,
.ua-favorite-button:focus-visible { background: rgba(46, 99, 233, .96); transform: scale(1.08); color: #fff; }
.ua-favorite-button.is-saved { background: rgba(130, 43, 64, .95); }
.ua-favorite-button[aria-busy="true"], .ua-favorite-player[aria-busy="true"] { pointer-events: none; opacity: .62; }
.ua-player-tabs .ua-favorite-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    margin-left: 4px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: #e8edf6;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.ua-player-tabs .ua-favorite-player:hover,
.ua-player-tabs .ua-favorite-player:focus-visible { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .32); color: #fff; transform: translateY(-1px); }
.ua-player-tabs .ua-favorite-player.is-saved { color: #ffd3d9; border-color: rgba(255, 154, 169, .45); background: rgba(157, 52, 73, .28); }
.favorite-auth-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: rgba(7, 12, 20, .76); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.favorite-auth-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.favorite-auth-modal__dialog { position: relative; width: min(100%, 390px); box-sizing: border-box; padding: 30px 26px 24px; border: 1px solid rgba(151, 172, 209, .22); border-radius: 14px; background: linear-gradient(145deg, #25354b, #172331); color: #edf3fc; box-shadow: 0 22px 70px rgba(0, 0, 0, .5); transform: translateY(8px) scale(.98); transition: transform .18s ease; }
.favorite-auth-modal.is-open .favorite-auth-modal__dialog { transform: translateY(0) scale(1); }
.favorite-auth-modal__dialog h2 { margin: 0 28px 10px 0; color: #fff; font-size: 21px; line-height: 1.25; }
.favorite-auth-modal__dialog p { margin: 0 0 21px; color: #c6d1e0; font-size: 14px; line-height: 1.55; }
.favorite-auth-modal__close { position: absolute; top: 10px; right: 10px; width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #c8d3e3; cursor: pointer; font-size: 25px; line-height: 1; }
.favorite-auth-modal__close:hover, .favorite-auth-modal__close:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.favorite-auth-modal__providers { display: grid; gap: 10px; }
.favorite-auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #fff; color: #273444; font-size: 14px; font-weight: 700; text-decoration: none; }
.favorite-auth-provider:hover, .favorite-auth-provider:focus-visible { color: #182332; background: #f7f9fc; }
.favorite-auth-provider svg { width: 19px; height: 19px; flex: 0 0 auto; }
.favorite-auth-provider--facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.favorite-auth-provider--facebook:hover, .favorite-auth-provider--facebook:focus-visible { background: #166fe5; color: #fff; }
.favorite-modal-open { overflow: hidden !important; }
.favorite-toast { position: fixed; left: 50%; bottom: 20px; z-index: 100001; max-width: calc(100vw - 28px); padding: 10px 15px; border-radius: 8px; background: #26384f; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.32); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.favorite-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.ua-empty-favorites { margin: 26px auto; max-width: 620px; padding: 34px 28px; border: 1px solid rgba(151, 172, 209, .2); border-radius: 12px; background: linear-gradient(145deg, #25354b, #172331); color: #d5dfed; text-align: center; box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.ua-empty-favorites h1 { margin: 0 0 12px; color: #fff; font-size: 24px; }
.ua-empty-favorites p { margin: 0 auto 22px; max-width: 470px; line-height: 1.55; }
.ua-empty-favorites a { display: inline-block; padding: 10px 16px; border-radius: 7px; background: #3168e9; color: #fff; font-weight: 700; text-decoration: none; }
.ua-empty-favorites a:hover, .ua-empty-favorites a:focus-visible { background: #477bff; color: #fff; }
.ua-user-panel { position: relative; }
.ua-user-panel summary { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 11px 0 7px; border-radius: 9px; background: #2f5fa9; color: #fff; cursor: pointer; font-weight: 700; list-style: none; }
.ua-user-panel summary::-webkit-details-marker { display: none; }
.ua-user-panel__avatar { width: 30px; height: 30px; border-radius: 50%; background-color: #1f2730; background-position: center; background-size: cover; }
.ua-user-panel__name { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-user-panel__arrow { opacity: .8; font-size: 12px; transition: transform .18s ease; }
.ua-user-panel[open] .ua-user-panel__arrow { transform: rotate(180deg); }
.ua-user-panel__menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 10001; min-width: 170px; padding: 6px; border: 1px solid rgba(151,172,209,.25); border-radius: 8px; background: #26384f; box-shadow: 0 12px 30px rgba(0,0,0,.32); }
.ua-user-panel__menu a { display: block; padding: 9px 10px; border-radius: 5px; color: #edf3fc; font-size: 13px; text-decoration: none; white-space: nowrap; }
.ua-user-panel__menu a:hover, .ua-user-panel__menu a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 700px) { .ua-card-wrap .ua-favorite-button { opacity: 1; pointer-events: auto; transform: none; } .ua-favorite-button { width: 31px; height: 31px; right: 6px; bottom: 6px; font-size: 16px; } .ua-player-tabs { flex-wrap: wrap; } .ua-player-tabs .ua-favorite-player { margin-left: 0; padding: 6px 8px; font-size: 12px; } .ua-player-tabs a:has(.ua-player-complaint) { margin-left: 0; } .favorite-auth-modal__dialog { padding: 27px 20px 21px; } }
