/* ─── FotMob-inspired pieces: date strip, day groups, win chance, Next column, followed teams ─── */

/* Date strip on fixtures */
.fm-bar { display: flex; align-items: stretch; gap: .5rem; margin: 0 0 .9rem; position: sticky; top: calc(var(--nav-h) + 4px); z-index: 5; }
.fm-strip { flex: 1; min-width: 0; display: flex; gap: .35rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: .35rem; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.fm-strip::-webkit-scrollbar { display: none; }
.fm-day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: .35rem .5rem; border-radius: 10px; color: var(--text-secondary); text-decoration: none; border: 1px solid transparent; }
.fm-day small { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.fm-day b { font-size: .9rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.fm-day em { display: inline-flex; align-items: center; gap: .25rem; font-style: normal; font-size: .6rem; color: var(--text-muted); }
.fm-day:hover { background: var(--bg-hover); }
.fm-day.is-past b { color: var(--text-secondary); }
.fm-day.is-today small { color: var(--accent); }
.fm-day.is-focus { background: var(--accent-subtle); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.fm-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px var(--red); }
.fm-follow-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: 0 .85rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font: 700 .76rem 'Inter', sans-serif; cursor: pointer; }
.fm-follow-btn[aria-pressed="true"] { color: #f2c14e; border-color: rgba(242, 193, 78, .5); background: rgba(242, 193, 78, .1); }

/* Day groups */
.fm-day-head { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 .35rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); scroll-margin-top: 140px; }
.fm-day-head:first-of-type { margin-top: 0; }
.fm-day-head span { padding: 0 .4rem; border-radius: 999px; background: var(--bg-input); color: var(--text-muted); font-size: .64rem; }
.fm-day-head.is-today { color: var(--accent); }
.fm-list .fx-teams { flex-wrap: wrap; }
.fm-list .fx-score.is-live { color: var(--red); }
.fm-follow-empty { padding: 1rem; border-radius: 12px; background: var(--bg-card); border: 1px dashed var(--border-light); color: var(--text-muted); font-size: .85rem; }
[data-fav-list].fav-only [data-teams]:not(.is-fav) { display: none; }
[data-fav-list].fav-only .fm-day-head { display: none; }

/* Win chance bar */
.hk-wp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .4rem; font-size: .62rem; color: var(--text-muted); }
.hk-wp b { font-weight: 800; font-variant-numeric: tabular-nums; }
.hk-wp span { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--blue) 55%, var(--bg-input)); overflow: hidden; }
.hk-wp i { display: block; height: 100%; background: var(--accent); }
.fm-wp { flex-basis: 100%; max-width: 260px; margin: .3rem auto 0; }

/* Table: Next column */
.next-cell { white-space: nowrap; }
.next-opp { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.next-opp img { width: 22px; height: 22px; object-fit: contain; }
.next-opp > span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg-input); font-size: .55rem; font-weight: 800; }
.next-opp em { font-style: normal; font-size: .66rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.next-opp em.is-up { color: var(--accent); }
.next-opp em.is-down { color: var(--text-muted); }

/* Followed teams */
.hk-follow { display: inline-flex; align-items: center; gap: .3rem; vertical-align: middle; margin-left: .5rem; min-height: 30px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--border-light); background: var(--bg-input); color: var(--text-secondary); font: 700 .72rem 'Inter', sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
.hk-follow svg { fill: none; stroke: currentColor; stroke-width: 2; }
.hk-follow:hover { color: var(--text); }
.hk-follow[aria-pressed="true"] { color: #f2c14e; border-color: rgba(242, 193, 78, .5); background: rgba(242, 193, 78, .12); }
.hk-follow[aria-pressed="true"] svg { fill: currentColor; }
.fixture-card.is-fav { box-shadow: inset 3px 0 0 #f2c14e; }
tr.is-fav td:nth-child(2) { font-weight: 800; }
tr.is-fav td:nth-child(2) .team-cell::after { content: '★'; margin-left: .35rem; color: #f2c14e; font-size: .8rem; }

@media (max-width: 640px) {
    .fm-bar { top: calc(var(--nav-h) + 2px); }
    .fm-follow-btn span, .fm-follow-btn { font-size: 0; gap: 0; padding: 0 .7rem; }
    .fm-follow-btn svg { width: 16px; height: 16px; }
    .fm-day { min-width: 62px; }
}
