body { background: #f4f6fa; color: #19263b; }
.page-header { padding: 2rem 0 1.1rem; }
.page-header-title-row { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.page-header h1 { color: #19263b; font-size: clamp(1.65rem, 4vw, 2.2rem); letter-spacing: -.04em; }
.page-header p { font-size: .95rem; }
.favorites-eyebrow { color: #718098; font-size: .7rem; font-weight: 800; letter-spacing: .13em; margin-bottom: .5rem; text-transform: uppercase; }
.manage-favorites-button { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #dce2eb; border-radius: 10px; color: #24324a; padding: .7rem 1rem; font-size: .85rem; font-weight: 600; }
.favorites-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.favorite-scopes { display: flex; flex-wrap: wrap; gap: .4rem; }
.favorite-scope { border: 1px solid transparent; background: transparent; color: #66748b; padding: .55rem 1rem; border-radius: 9px; font-size: .87rem; font-weight: 600; }
.favorite-scope.active { background: #192e50; color: white; }
.filter-mode-wrap { margin: 0; }
.advanced-toggle-btn { white-space: nowrap; background: #fff; border-color: #dce2eb; color: #425570; padding: .55rem .8rem; }
.favorites-manager { background: #fff; border: 1px solid #dce2eb; border-radius: 14px; padding: 1.1rem; margin-bottom: 1.4rem; }
.favorites-manager:not([open]) { display: none; }
.favorites-manager > summary { font-weight: 700; cursor: pointer; }
.manager-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }
.manager-heading p { color: #718098; font-size: .85rem; margin: 0; }
.manager-search { max-width: 620px; }
#favoriteTeamsGrid { display: none !important; }
.following-cards-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 1rem; }
.following-card { box-shadow: none; border: 1px solid #e3e8f0; }
.favorites-section { margin-bottom: 1.7rem; }
.favorites-section-heading { display: flex; align-items: baseline; gap: .65rem; margin-bottom: .8rem; }
.favorites-section-heading h2 { font-size: 1.12rem; font-weight: 750; margin: 0; letter-spacing: -.02em; }
.favorites-section-heading .section-count { background: #e7ecf4; color: #62718a; border-radius: 6px; padding: .1rem .4rem; font-size: .75rem; }
.live-indicator { height: 8px; width: 8px; border-radius: 50%; background: #e43c48; align-self: center; }
.favorite-match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.section-empty { color: #7c899d; font-size: .85rem; padding: 1rem 1.1rem; border: 1px dashed #d5dde9; border-radius: 12px; margin: 0; }
.match-card { margin: 0; border: 1px solid #e0e6ef; border-radius: 14px; box-shadow: 0 2px 4px #192e5004; transition: border-color .15s, box-shadow .15s; }
.match-card:hover { transform: none; border-color: #b8c7dd; box-shadow: 0 4px 14px #192e500b; }
.match-card:focus-within { outline: 2px solid #477ed1; outline-offset: 2px; }
.match-card.is-live { border-top: 3px solid #e43c48; }
.match-open-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.match-card a:not(.match-open-link), .match-card button { position: relative; z-index: 2; }
.match-card .calendar-icon-btn { position: absolute; z-index: 3; top: .65rem; right: .65rem; }
.match-card-header { display: flex; align-items: center; gap: .5rem; padding: .75rem 2.8rem 0 .9rem; min-height: 2rem; }
.match-competition { color: #738198; font-size: .72rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.match-state { font-size: .65rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; color: #738198; }
.match-state.live { color: #dc3545; }
.match-grid { padding: .95rem .9rem .75rem; gap: .7rem; grid-template-columns: minmax(0,1fr) minmax(82px,auto) minmax(0,1fr); }
.team-info { gap: .45rem; min-width: 0; }
.team-info img { width: 46px; height: 46px; }
.team-info .team-name { font-size: .83rem; line-height: 1.3; color: #24324a; text-decoration: none; overflow-wrap: anywhere; }
.team-info .team-name:hover { color: #0d6efd; }
.team-logo-link { display: inline-flex; }
.match-center { min-width: 0; gap: .2rem; }
.match-score { color: #192e50; font-size: 1.8rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.match-score.hidden-score { font-size: .78rem; font-weight: 500; }
.match-time { font-size: 1.15rem; font-weight: 700; color: #192e50; }
.match-date, .match-clock { font-size: .72rem; color: #7c899d; }
.match-card-footer { border-top: 1px solid #eff2f6; padding: .6rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.match-card-footer .match-venue { font-size: .72rem; text-decoration: none; max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.match-follow-reason { font-size: .65rem; color: #617590; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-follow-reasons { padding: 0 .9rem .65rem; display: flex; flex-wrap: wrap; gap: .25rem; }
.match-follow-reason { background: #f1f5fa; padding: .15rem .4rem; border-radius: 4px; }
.match-meta-badges { position: static; padding: .35rem .9rem 0; flex-direction: row; gap: .3rem; }
.match-meta-badge { box-shadow: none; font-size: .6rem; }
.live-camera-badge { position: static; transform: none; font-size: .62rem; padding: .15rem .4rem; box-shadow: none; }
.replay-ribbon { display: none; }
.matches-tabs-wrap { margin: 0 0 2rem; }
.matches-tabs-header { align-items: center; gap: .8rem; flex-wrap: wrap; }
#matchTabs { border: 0; gap: 1.2rem; }
#matchTabs .nav-link { border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: none; color: #78869b; padding: .65rem 0; font-weight: 650; }
#matchTabs .nav-link.active { border-bottom-color: #192e50; color: #192e50; }
.favorite-compact-list { display: grid; gap: .65rem; }
.favorite-compact-list .match-card-header { padding-top: .6rem; }
.favorite-compact-list .match-grid { padding: .6rem .9rem; }
.favorite-compact-list .team-info { flex-direction: row; }
.favorite-compact-list .team-info:last-child { flex-direction: row-reverse; }
.favorite-compact-list .team-info img { width: 34px; height: 34px; }
.favorite-compact-list .team-info .team-name { text-align: left; }
.favorite-compact-list .team-info:last-child .team-name { text-align: right; }
.favorite-compact-list .match-score { font-size: 1.45rem; }
.favorite-compact-list .match-follow-reasons { padding-bottom: .4rem; }
@media (max-width: 767px) {
 .page-header { padding-top: 1.25rem; }
 .favorite-match-grid { grid-template-columns: 1fr; }
 .favorites-toolbar { gap: .3rem; align-items: flex-start; }
 .favorite-scope { padding: .55rem .6rem; font-size: .8rem; }
 .advanced-toggle-btn { padding: .55rem .5rem; font-size: .75rem; }
 .manage-favorites-button { font-size: .8rem; padding: .6rem .75rem; }
 .favorite-compact-list .team-info { flex-direction: column; }
 .favorite-compact-list .team-info:last-child { flex-direction: column; }
 .favorite-compact-list .team-info .team-name, .favorite-compact-list .team-info:last-child .team-name { text-align: center; }
 .matches-tabs-header #exportUpcomingBtn { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .match-card, .team-info img { transition: none; } }
