/* Favourite page (views/pc/favourite/index.php): Match | Team | Player tabs, team / player rows and their empty state.
   The match cards keep the shared feed styles (score24h.css). Linked from the view, as the hub pages do with
   league-hub.css, so no other page downloads it. */

.favorite-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.favorite-tabs::-webkit-scrollbar {
    display: none;
}

.favorite-tab {
    flex-shrink: 0;
    height: 32px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(85, 85, 100, .17);
    color: #8c8c8e;
    font-family: var(--font-vn, 'Be Vietnam Pro', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.favorite-tab:hover {
    color: #eee;
}

/* Active pill: red outline fading to grey (two backgrounds: the fill stops at the padding box, the gradient shows
   through the transparent border) */
.favorite-tab.is-active {
    background: linear-gradient(#1b1c22, #1b1c22) padding-box,
        linear-gradient(100deg, #fd0000 0%, rgba(253, 0, 0, .55) 35%, rgba(255, 255, 255, .16) 100%) border-box;
    color: #fff;
    font-weight: 500;
}

.favorite-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.favorite-pane[hidden],
.favorite-list[hidden],
.favorite-empty[hidden] {
    display: none !important;
}

.favorite-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorite-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-box, #12141b);
    color: #fff;
    font-family: var(--font-vn, 'Be Vietnam Pro', sans-serif);
    text-decoration: none;
    box-sizing: border-box;
    transition: background .15s ease;
}

.favorite-row:hover {
    background: #181a22;
    color: #fff;
}

.favorite-row__logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Player photo */
.favorite-row__logo--round {
    border-radius: 50%;
    object-fit: cover;
    background: rgba(85, 85, 100, .25);
}

.favorite-row__info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.favorite-row__name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-row__sub {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #8c8c8e;
    font-size: 11px;
    line-height: 14px;
}

.favorite-row__sub img {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.favorite-row__sub span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-row__star {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(85, 85, 100, .25);
    cursor: pointer;
    transition: background .15s ease;
}

.favorite-row__star:hover {
    background: rgba(255, 255, 255, .12);
}

.favorite-row__star img {
    display: block;
}

/* Same box as .home-favorite-empty of the Match tab (score24h.css). Own class: the match scripts show / hide every
   .home-favorite-empty of the page. */
.favorite-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 48px 16px;
    border-radius: 12px;
    background: var(--surface-secondary, #1a1a1c);
    text-align: center;
    box-sizing: border-box;
}

.favorite-empty__title {
    margin: 0;
    color: #eee;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.favorite-empty__text {
    margin: 0;
    max-width: 320px;
    color: #8c8c8e;
    font-size: 14px;
    line-height: 1.5;
}
