/* Soccer Engine plugin output, restyled. The plugin's own stylesheet loads on every page;
   every rule here starts with `body` so it wins without touching the plugin. */

body .wpse_mt, body .wpse_tabs, body .wpse_table, body .wpse_standings_wrap, body .wpse_competition_wrap { font-family: var(--wp--preset--font-family--body); color: var(--se-ink); }
body .wpse_mt a, body .wpse_table a { color: var(--se-ink); text-decoration: none; }
body .wpse_mt a:hover .team_name, body .wpse_table a:hover .team_name, body .wpse_mt a.event_player:hover { color: var(--se-accent); }
body .wpse_mt table, body table.wpse_table { width: 100%; border-collapse: collapse; border: 0; margin: 0; }
body .wpse_mt td, body .wpse_mt th { border-left: 0; border-right: 0; }

/* ---------- Competition header (crest, name, season) */
body .competition_wrap { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.25rem; overflow: visible; flex-wrap: wrap; }
body .competition_logo { float: none; margin: 0; width: 4rem; height: 4rem; line-height: 1; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--se-border); border-radius: var(--se-radius-lg); padding: .45rem; }
body .competition_logo img { max-height: 100%; }
body .competition_name { padding: 0; font-family: var(--se-display); font-size: 1.9rem; line-height: 1; text-transform: uppercase; font-weight: 700; }
body .competition_season { font-size: .75rem; line-height: 1; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--se-ink); border-radius: var(--wp--custom--border--pill); padding: .35rem .6rem; }

/* ---------- Tabs */
body ul.wpse_tab_menu, body ul.wpse_tab_menu2 { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.25rem !important; padding: 0 0 0 0; list-style: none; border-bottom: 1px solid var(--se-border); }
body ul.wpse_tab_menu > li, body ul.wpse_tab_menu2 > li { margin: 0; padding: 0; float: none; list-style: none; }
body ul.wpse_tab_menu > li > a, body ul.wpse_tab_menu2 > li > a { display: block; margin: 0 0 -1px; padding: .7rem .95rem; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0; background: none; box-shadow: none; color: var(--se-muted) !important; font-size: .8125rem; line-height: 1.2; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
body ul.wpse_tab_menu > li > a:hover, body ul.wpse_tab_menu2 > li > a:hover { color: var(--se-ink) !important; background: none; border-bottom-color: var(--se-border) !important; }
body ul.wpse_tab_menu > li.wpse_active > a, body ul.wpse_tab_menu2 > li.wpse_active > a { color: var(--se-ink) !important; background: none !important; border-bottom-color: var(--se-accent) !important; }
body .wpse_tab_menu_handle { display: none; }
body .wpse_tab_contents { padding: 0; border: 0; background: none; }

/* Matchday navigator: prev / current / next */
body .wpse_matchdays_wrap.style_nav ul.wpse_tab_menu2 { display: block; border: 1px solid var(--se-border); border-radius: var(--se-radius); background: var(--se-surface); margin-bottom: 1rem !important; }
body .wpse_matchdays_wrap.style_nav ul.wpse_tab_menu2 > li.wpse_active > a { border: 0 !important; padding: .75rem 3rem; font-family: var(--se-display); font-size: 1.25rem; letter-spacing: .03em; }
body .wpse_matchdays_wrap.style_nav ul.wpse_tab_menu2 li.md_prev a, body .wpse_matchdays_wrap.style_nav ul.wpse_tab_menu2 li.md_next a { margin: .45rem; padding: .35rem .7rem; background: #fff; border: 1px solid var(--se-border) !important; border-radius: var(--se-radius); color: var(--se-ink) !important; }

/* ---------- Standings and stats tables */
body table.wpse_table { border: 1px solid var(--se-border); border-radius: var(--se-radius-lg); overflow: hidden; border-collapse: separate; border-spacing: 0; background: #fff; }
body table.wpse_table th { background: var(--se-night); color: #fff; border: 0; font-size: .6875rem; line-height: 1.2; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .7rem .35rem; }
body table.wpse_table td { background: #fff !important; border: 0; border-top: 1px solid var(--se-border); font-size: .9rem; line-height: 1.3; padding: .55rem .35rem; vertical-align: middle; font-variant-numeric: tabular-nums; }
body table.wpse_table tbody tr:first-child td { border-top: 0; }
body table.wpse_table tbody tr:hover td { background: var(--se-surface) !important; }
body table.wpse_table td.rank { color: var(--se-muted); font-weight: 700; width: 2.5rem; }
body table.wpse_table td.points { font-weight: 800; font-size: 1rem; }
body table.wpse_table th.points, body table.wpse_table td.points { padding-right: .9rem !important; }
body table.wpse_table td.team, body table.wpse_table th.team { padding-left: .6rem !important; }
body table.wpse_table .team_wrap { display: flex; align-items: center; gap: .65rem; line-height: 1.2; }
body table.wpse_table .team_wrap > a { display: flex; align-items: center; gap: .65rem; }
body table.wpse_table .team_logo { float: none; margin: 0; width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
body table.wpse_table .team_logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
body table.wpse_table .team_name { float: none; font-weight: 600; }
body table.wpse_table .team_short_name { display: none; }
/* Top four, then the bottom three, marked on the rank cell */
body .wpse_standing table.wpse_table tbody tr:nth-child(-n+4) td.rank { box-shadow: inset 3px 0 0 var(--se-violet); color: var(--se-ink); }
body .wpse_standing table.wpse_table tbody tr:nth-last-child(-n+3) td.rank { box-shadow: inset 3px 0 0 var(--se-accent); }

/* ---------- Match lists (table view) */
body .wpse_matches table { border: 1px solid var(--se-border); border-radius: var(--se-radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
body .wpse_matches td { border: 0; border-top: 1px solid var(--se-border); background: #fff; padding: .7rem .5rem; vertical-align: middle; font-size: .9rem; line-height: 1.3; }
body .wpse_matches tr.wpse_group td { padding: .55rem .9rem !important; font-size: .75rem; line-height: 1.2; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
body .wpse_matches tr.wpse_group_date td { background: var(--se-surface); color: var(--se-ink); }
body .wpse_matches tr.wpse_group_competition td { background: #fff; color: var(--se-muted); font-size: .6875rem; padding-block: .5rem .1rem !important; }
body .wpse_matches tr.wpse_group_competition + tr.wpse_match td { border-top: 0; }
body .wpse_matches tr.wpse_match:hover td { background: #fbfbfd; }
body .wpse_matches td.meta { width: 16%; padding-left: .9rem; color: var(--se-muted); font-size: .75rem; }
body .wpse_matches td.meta .match_time { display: block; color: var(--se-ink); font-weight: 700; font-size: .875rem; }
body .wpse_matches td.meta .match_date { display: none; }
body .wpse_matches td.meta .match_venue, body .wpse_matches td.meta .match_round { display: none; }
body .wpse_matches td.meta .game_status { display: none; }
body .wpse_matches td.team .team_name { font-weight: 600; }
body .wpse_matches .result_team1 td.team1 .team_name, body .wpse_matches .result_team2 td.team2 .team_name { font-weight: 800; }
body .wpse_matches td.score { text-align: center; width: 6.5rem; white-space: nowrap; }
body .wpse_matches td.score a.match_score, body .wpse_matches td.score .match_score { display: inline-block; min-width: 4.2rem; padding: .35rem .6rem; border-radius: var(--se-radius); background: var(--se-ink); color: #fff !important; font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-decoration: none; }
body .wpse_matches tr.status_fixture td.score a.match_score, body .wpse_matches tr.status_fixture td.score .match_score { background: var(--se-surface); color: var(--se-muted) !important; border: 1px solid var(--se-border); font-weight: 700; text-transform: uppercase; font-size: .75rem; }
body .wpse_matches td.score .game_status { display: block; margin-top: .25rem; font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--se-muted); }
body .wpse_matches tr.status_live td.score .match_score { background: var(--se-accent); }
body .wpse_matches .team_events { margin-top: .35rem; font-size: .75rem; color: var(--se-muted); }
body .wpse_matches tr.wpse_more td { padding: .75rem !important; background: var(--se-surface); }
body .wpse_matches tr.wpse_more td a, body .wpse_view_grid li.wpse_more a { display: inline-block; width: auto; height: auto; line-height: 1.2; white-space: nowrap; margin: 0; padding: .5rem 1.1rem !important; border: 1px solid var(--se-ink) !important; border-radius: var(--wp--custom--border--pill); background: #fff; color: var(--se-ink) !important; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body .wpse_matches tr.wpse_more td a:hover { background: var(--se-ink); color: #fff !important; }
body .wpse_matches tr.wpse_no_items td { padding: 1.5rem !important; text-align: center; color: var(--se-muted); }

/* ---------- Match cards (grid view) */
body .wpse_view_grid ul.wpse_matches_list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
body .wpse_view_grid ul.wpse_matches_list::before, body .wpse_view_grid ul.wpse_matches_list::after { content: none; }
body .wpse_view_grid ul.wpse_matches_list > li { width: auto !important; float: none; margin: 0; padding: .85rem 1rem; border: 1px solid var(--se-border); border-radius: var(--se-radius-lg); background: #fff; box-shadow: none; list-style: none; }
body .wpse_view_grid .match_meta { margin: 0 0 .6rem !important; padding: 0 !important; background: none !important; border: 0; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--se-muted); }
body .wpse_view_grid .match_meta a { color: var(--se-muted); }
body .wpse_view_grid .match_meta .match_time { color: var(--se-accent); margin-left: .4rem; font-size: inherit; }
body .wpse_view_grid .team { display: flex; align-items: center; justify-content: space-between; gap: .6rem; float: none; width: auto; margin: 0; padding: .22rem 0; text-align: left; }
body .wpse_view_grid .team .team_wrap { display: flex; align-items: center; gap: .55rem; flex-direction: row; }
body .wpse_view_grid .team .team_logo { float: none; margin: 0; width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
body .wpse_view_grid .team .team_logo img { max-width: 100%; max-height: 100%; }
body .wpse_view_grid .team .team_name { float: none; font-weight: 600; font-size: .9rem; }
body .wpse_view_grid .team .team_score { font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
body .wpse_view_grid .wpse_match_status_fixture .team_score { display: none; }
body .wpse_view_grid .match_venue { margin-top: .5rem; padding: .5rem 0 0; border-top: 1px solid var(--se-border); font-size: .72rem; color: var(--se-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .wpse_view_grid li.wpse_more { display: flex; align-items: center; justify-content: center; background: var(--se-surface) !important; }
body .wpse_view_grid li.wpse_more .match_meta { display: none; }

/* Match strip on the home page: one scrolling row of dark cards */
body .se-strip .wpse_view_grid ul.wpse_matches_list { display: flex; overflow-x: auto; gap: .7rem; padding-bottom: .3rem; scrollbar-width: thin; scrollbar-color: #4a4f85 transparent; }
body .se-strip .wpse_view_grid ul.wpse_matches_list > li { flex: 0 0 13.5rem; padding: .7rem .85rem; background: var(--se-night); border-color: rgba(255, 255, 255, .1); color: #fff; }
body .se-strip .wpse_view_grid a, body .se-strip .wpse_view_grid .team_name { color: #fff; }
body .se-strip .wpse_view_grid .match_meta, body .se-strip .wpse_view_grid .match_meta a { color: var(--wp--preset--color--on-dark-muted); }
body .se-strip .wpse_view_grid .match_meta .match_time { color: var(--se-lime); }
body .se-strip .wpse_view_grid .match_venue, body .se-strip .wpse_view_grid li.wpse_more { display: none !important; }

/* ---------- Dropdown bars (league switcher) */
body .wpse_dropdown_wrap, body .wpse_countries_dropdown_wrap, body .wpse_dropdown_competitions { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 1rem; }
body .wpse_dropdown_wrap h3, body .wpse_countries_dropdown_wrap h3, body .wpse_standings_wrap > h3 { display: none; }
body .wpse_dropdown_menu_wrap { padding: 0; max-width: 22rem; }
body .wpse_countries_dropdown_wrap .wpse_countries_dropdown { float: none; }
body .wpse_dropdown_menu_selected { padding: .7rem 2.6rem .7rem .9rem; border: 1px solid var(--se-border); border-radius: var(--se-radius); background: #fff; color: var(--se-ink); font-size: .875rem; line-height: 1.2; font-weight: 600; }
body .wpse_dropdown_menu_indicator { right: .6rem; top: 50%; transform: translateY(-50%); background-color: var(--se-ink); border-radius: 50%; }
body .wpse_dropdown_menu_wrap:hover .wpse_dropdown_menu_indicator { background-color: var(--se-accent); }
body ul.wpse_dropdown_menu { margin: .25rem 0 0; padding: .3rem; border: 1px solid var(--se-border); border-radius: var(--se-radius); background: #fff; box-shadow: var(--wp--custom--shadow--card); list-style: none; }
body ul.wpse_dropdown_menu li > a { padding: .55rem .6rem; border-radius: .3rem; font-size: .875rem; line-height: 1.2; color: var(--se-ink); }
body ul.wpse_dropdown_menu li > a:hover { background: var(--se-surface); }
body .wpse_dropdown_competitions { padding-top: 0; }
body .wpse_dropdown_competitions ul.wpse_tab_menu { position: static; }
body .wpse_dropdown_competitions .wpse_tabs { margin: 0; }
body .wpse_dropdown_competitions td { background-color: #fff; border-color: var(--se-border); }
body .wpse_dropdown_competitions .wpse_matches tr.wpse_group td { border-top: 0; font-weight: 700; font-size: .75rem; line-height: 1.2; }
body .wpse_group_title { margin: 0 0 .6rem; padding: 0; background: none; border: 0; }
body .wpse_group_title .competition_wrap { margin: 0; }
body .wpse_group_title .competition_name { font-size: 1.15rem; }

/* ---------- Calendar bar */
body .wpse_calendar_wrap .wpse_competitions_dropdown_wrap, body .wpse_calendar_wrap .wpse_calendar_form, body .wpse_calendar_wrap .wpse_calendar_date { box-sizing: border-box; }
body .wpse_calendar_wrap .wpse_calendar { clear: both; }
body .wpse_calendar_date { padding: .6rem .8rem; border: 1px solid var(--se-border); border-radius: var(--se-radius); }

/* ---------- Team lists */
body .wpse_teams, body ul.wpse_teams_list { list-style: none; padding: 0; margin: 0; }

/* ---------- Date rows keep one look in every list */
body .wpse_matches tr.wpse_group_date td { background: var(--se-surface) !important; color: var(--se-ink) !important; border-top: 1px solid var(--se-border) !important; }
body .wpse_matches tr.wpse_group_date:first-child td { border-top: 0 !important; }

/* ---------- Tables inside a narrow panel (home, article sidebar) */
body .se-panel .wpse_group_title { margin: 1rem 0 .5rem; padding: 0 !important; background: none !important; border: 0 !important; color: var(--se-ink) !important; }
body .se-panel .wpse_group_title .competition_name { font-size: 1.1rem; color: var(--se-ink); }
body .se-panel .wpse_group { margin: 0; padding: 0; width: auto; float: none; background: none; }
body .se-panel table.wpse_table th { letter-spacing: 0; padding-inline: .15rem !important; white-space: nowrap; }
body .se-panel table.wpse_table td { padding: .45rem .15rem !important; font-size: .8125rem; }
body .se-panel table.wpse_table th.goalfor, body .se-panel table.wpse_table td.goalfor,
body .se-panel table.wpse_table th.goalagainst, body .se-panel table.wpse_table td.goalagainst { display: none; }
body .se-panel table.wpse_table th.points, body .se-panel table.wpse_table td.points { padding-right: .6rem !important; width: 2.4rem; }
body .se-panel table.wpse_table th.rank, body .se-panel table.wpse_table td.rank { width: 2rem; padding-left: .5rem !important; }
body .se-panel table.wpse_table .team_logo { width: 1.3rem; height: 1.3rem; }
body .se-panel table.wpse_table .team_wrap, body .se-panel table.wpse_table .team_wrap > a { gap: .45rem; }
body .se-panel .wpse_dropdown_menu_wrap { max-width: none; }
body .se-panel .wpse_view_grid ul.wpse_matches_list { grid-template-columns: 1fr; gap: .6rem; }
body .se-panel .wpse_view_grid li.wpse_more { display: none !important; }

/* ---------- Club grid ([wpse_teams]) */
body .wpse_teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .9rem; }
body .wpse_teams > .team_wrap { display: block; margin: 0; padding: 0; float: none; width: auto; height: auto !important; overflow: visible; border: 0; background: none; box-shadow: none; }
body .wpse_teams > .team_wrap > a { display: flex; flex-direction: column; align-items: center; gap: .7rem; height: 100%; padding: 1.25rem .75rem 1rem; border: 1px solid var(--se-border); border-radius: var(--se-radius-lg); background: #fff; color: var(--se-ink); text-align: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
body .wpse_teams > .team_wrap > a:hover { transform: translateY(-3px); box-shadow: var(--wp--custom--shadow--card); border-color: var(--se-ink); }
body .wpse_teams .team_logo { float: none; margin: 0; width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; }
body .wpse_teams .team_logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
body .wpse_teams .team_name { display: block !important; float: none; font-weight: 700; font-size: .875rem; line-height: 1.25; }
body .wpse_teams .team_short_name { display: block !important; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; color: var(--se-muted); }

/* ---------- Single match: scoreboard */
body .wpse_match_title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem 2rem; margin: 0 0 2rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--se-radius-lg); background: var(--se-night); color: #fff; }
body .wpse_match_title > .team { float: none; width: auto; margin: 0; text-align: center; }
body .wpse_match_title > .team a { display: flex; flex-direction: column; align-items: center; gap: .75rem; color: #fff; }
body .wpse_match_title > .team img.team_logo { float: none; width: clamp(3.5rem, 8vw, 5.5rem); height: auto; margin: 0; }
body .wpse_match_title > .team .team_name { float: none; font-family: var(--se-display); font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 700; text-transform: uppercase; line-height: 1.05; color: #fff; }
body .wpse_match_title > .score { float: none; width: auto; margin: 0; text-align: center; }
body .wpse_match_title .match_score { font-family: var(--se-display); font-size: clamp(2.75rem, 7vw, 4.5rem); font-weight: 700; line-height: 1; color: #fff; white-space: nowrap; }
body .wpse_match_title .score .game_status { display: inline-block; margin-top: .6rem; padding: .25rem .7rem; border-radius: var(--wp--custom--border--pill); background: var(--se-lime); color: var(--se-night); font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
body .wpse_match_title > .meta { grid-column: 1 / -1; float: none; width: auto; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
body .wpse_match_title .match_meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem; color: var(--wp--preset--color--on-dark-muted); font-size: .8125rem; font-weight: 500; }
body .wpse_match_title .match_meta *, body .wpse_match_title .match_meta > * { margin: 0; font-weight: 500 !important; font-size: .8125rem !important; line-height: 1.4; }
body .wpse_match_title .match_meta .match_datetime { display: inline-flex; }
body .wpse_match_title .match_meta .match_time { margin-left: .4rem; color: #fff; }

/* Lineup, timeline */
body .wpse_match_lineup .match_players, body .wpse_match_timeline .match_events { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
body .wpse_match_lineup .team, body .wpse_match_timeline .team { float: none; width: auto; }
body .wpse_match_lineup .title { grid-column: 1 / -1; margin: 1rem 0 .5rem; padding: .5rem .9rem; border: 0; border-radius: var(--se-radius); background: var(--se-surface); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-align: left; }
body .wpse_match_lineup ul.team_players { margin: 0; padding: 0; list-style: none; }
body .wpse_match_lineup li.team_player { margin: 0; padding: .55rem .25rem; border: 0; border-bottom: 1px solid var(--se-border); list-style: none; }
body .wpse_match_lineup .player_shirt { display: inline-block; min-width: 1.6rem; color: var(--se-muted); font-weight: 700; }

/* ---------- Calendar bar */
body .wpse_calendar_wrap { background: none; border: 0; padding: 0; }
body .wpse_calendar_wrap h3 { display: none; }
body .wpse_calendar_wrap .wpse_competitions_dropdown_wrap, body .wpse_calendar_wrap .wpse_calendar_form { background: none; border: 0; padding: 0; margin: 0 0 1rem; }
body .wpse_calendar_wrap .wpse_calendar_form { text-align: right; }
body .wpse_calendar_wrap .wpse_calendar_date { max-width: 14rem; font-weight: 600; }

/* ---------- Narrow match lists (the plugin adds wpse_tsm / wpse_txs by container width):
   one compact card row per match — meta line, then home | score | away. */
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm table, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs table,
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tbody, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tbody { display: block; width: 100%; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_group, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_group { display: block !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_match, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .15rem .5rem; padding: .6rem .7rem; border-top: 1px solid var(--se-border); }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_match td, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_match td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_match td.meta, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_match td.meta { grid-column: 1 / -1; text-align: center; font-size: .6875rem; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.meta .match_meta, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.meta .match_meta { display: flex; justify-content: center; gap: .6rem; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.meta .match_time, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.meta .match_time { display: inline; font-size: .6875rem; color: var(--se-accent); }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.meta .match_datetime, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.meta .match_datetime { display: inline !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.team .team_wrap, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.team .team_wrap { display: block; height: auto !important; padding: 0 !important; overflow: visible; line-height: 1.25; font-size: .8125rem; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.team .team_wrap > a, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.team .team_wrap > a { display: flex; align-items: center; gap: .45rem; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.team1 .team_wrap > a, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.team1 .team_wrap > a { flex-direction: row-reverse; text-align: right; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.team span.team_logo, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.team span.team_logo { position: static; float: none; margin: 0; width: 1.4rem; height: 1.4rem; flex: none; display: inline-flex; align-items: center; justify-content: center; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.team span.team_logo img, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.team span.team_logo img { max-width: 100%; max-height: 100%; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.team .team_name, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.team .team_name { display: block !important; float: none; white-space: normal; overflow: visible; text-align: inherit; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.team .team_short_name, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.team .team_short_name,
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.team > .team_score, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.team > .team_score,
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm .team_events, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs .team_events,
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.score .game_status, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.score .game_status { display: none !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_match td.score .match_score, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_match td.score .match_score { display: inline-block !important; min-width: 3.2rem; padding: .25rem .4rem; font-size: .8125rem; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_more, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_more { display: block; text-align: center; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_more td, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_more td { display: block; }

@media (max-width: 600px) {
  body table.wpse_table th.goalfor, body table.wpse_table td.goalfor, body table.wpse_table th.goalagainst, body table.wpse_table td.goalagainst { display: none; }
  body table.wpse_table th, body table.wpse_table td { padding-inline: .2rem !important; }
  body .wpse_match_title { gap: .75rem; padding: 1rem; }
  body .wpse_match_lineup .match_players, body .wpse_match_timeline .match_events { grid-template-columns: 1fr; }
}
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_group td, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_group td { display: block !important; width: 100% !important; box-sizing: border-box; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_group_date { display: block !important; }
body .wpse_matches tr.wpse_group_competition td { background: #fff !important; color: var(--se-muted) !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.meta .match_time, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.meta .match_time,
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.meta .match_datetime, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.meta .match_datetime { position: static !important; float: none !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.meta .match_round, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.meta .match_round { display: none !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.meta .match_date, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.meta .match_date { display: none !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm td.meta .match_time, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs td.meta .match_time { display: inline !important; font-weight: 700; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_match td.score > *, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_match td.score > * { display: inline-block !important; }
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_match td.score .game_status, body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_match td.score .game_status { display: none !important; }

/* ---------- Form guide (W / D / L chips) */
body .wpse_team_form { margin: 0; }
body .wpse_team_forms { display: flex; gap: .3rem; margin: 0; padding: 0; background: none; border: 0; }
body .team_form { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; margin: 0; padding: 0 !important; border: 0; border-radius: 50%; background: #6b6f8c; color: #fff; font-size: .6875rem !important; line-height: 1; font-weight: 800 !important; text-shadow: none; box-shadow: none; }
body .team_form.team_win { background: var(--se-lime); color: var(--se-night); }
body .team_form.team_lost { background: var(--se-accent); }

/* ---------- Narrow match lists: the plugin positions every .team_score absolutely, which pulls the
   home score out of the chip ("3 – 0" printed as "– 0") in lists that show events. */
body .wpse_mt.wpse_matches.wpse_view_table.wpse_tsm tr.wpse_match td.score .match_score .team_score,
body .wpse_mt.wpse_matches.wpse_view_table.wpse_txs tr.wpse_match td.score .match_score .team_score { position: static !important; display: inline !important; width: auto !important; float: none !important; }

/* ---------- Tabs on a phone: one row that scrolls sideways */
@media (max-width: 600px) {
  body ul.wpse_tab_menu, body ul.wpse_tab_menu2 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body ul.wpse_tab_menu::-webkit-scrollbar, body ul.wpse_tab_menu2::-webkit-scrollbar { display: none; }
  body ul.wpse_tab_menu > li, body ul.wpse_tab_menu2 > li { flex: none; }
  body ul.wpse_tab_menu > li > a, body ul.wpse_tab_menu2 > li > a { white-space: nowrap; padding-inline: .8rem; }
}

/* ---------- Single team: squad grouped by position */
body .wpse_team_players.wpse_groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; align-items: start; }
body .wpse_team_players.wpse_groups > .wpse_group { float: none; width: auto; margin: 0; padding: 0; background: none; }
body .wpse_team_players table.wpse_table th.shirt, body .wpse_team_players table.wpse_table td.shirt { width: 2.75rem; text-align: center; }
body .wpse_team_players table.wpse_table td.shirt { color: var(--se-muted); font-weight: 800; }
body .wpse_team_players table.wpse_table th.title { text-align: left; }
body .wpse_team_players table.wpse_table td.title { font-weight: 600; }
body .wpse_team_players table.wpse_table td.title .flag { margin-right: .45rem; }

/* ---------- Single player: the hero carries the photo, name and key numbers */
body .wpse_player > .wpse_group { float: none; width: auto; margin: 0 0 2rem; padding: 0; background: none; }
body .wpse_player [id="wpse_group_title"] { margin: 0 0 .9rem; padding: 0 0 .5rem; border-bottom: 2px solid var(--se-ink); font-family: var(--se-display); font-size: 1.5rem; line-height: 1.1; font-weight: 700; text-transform: uppercase; }
body .wpse_player .wpse_profile_photo { display: none; }
body .wpse_player .wpse_profile_details { overflow: visible; max-width: 34rem; }
body .wpse_player_profile table.wpse_table td { padding: .65rem .9rem; }
body .wpse_player_profile table.wpse_table td:first-child { width: 40%; color: var(--se-muted); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
body .wpse_player_profile table.wpse_table td:last-child { font-weight: 600; }
body .wpse_player_profile table.wpse_table tr:has(td:last-child:empty) { display: none; }
body .wpse_player_stats { overflow-x: auto; }
body .wpse_player_stats table.wpse_table th, body .wpse_player_stats table.wpse_table td { padding-inline: .7rem; text-align: center; white-space: nowrap; }
body .wpse_player_stats table.wpse_table th:first-child, body .wpse_player_stats table.wpse_table td:first-child,
body .wpse_player_stats table.wpse_table th.team_id, body .wpse_player_stats table.wpse_table td.team_id { text-align: left; }
body .wpse_player_stats table.wpse_table td.comp_id { font-weight: 600; }
@media (max-width: 600px) {
  body .wpse_player_stats table.wpse_table th.season, body .wpse_player_stats table.wpse_table td.season,
  body .wpse_player_stats table.wpse_table th.team_id, body .wpse_player_stats table.wpse_table td.team_id { display: none !important; }
  body .wpse_player_stats table.wpse_table th, body .wpse_player_stats table.wpse_table td { padding-inline: .45rem !important; }
  body .wpse_player_stats table.wpse_table td.comp_id { white-space: normal; }
}

/* ---------- Single match: the two "recent" lists sit in two equal columns */
body .wpse_match_recents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
body .wpse_match_recents > .wpse_team_recent { display: block; width: auto !important; min-width: 0; margin: 0 !important; }
@media (max-width: 900px) { body .wpse_match_recents { grid-template-columns: minmax(0, 1fr); } }

/* Match stats: label in the middle, a number each side */
body .wpse_match_stats .stats { float: none; width: auto; max-width: 40rem; margin: 0 auto !important; border: 1px solid var(--se-border); border-radius: var(--se-radius-lg); overflow: hidden; background: #fff; }
body .wpse_match_stats .stat { display: grid; grid-template-columns: 4.5rem 1fr 4.5rem; align-items: center; padding: .7rem .9rem; border-top: 1px solid var(--se-border); font-size: .9rem !important; line-height: 1.3 !important; }
body .wpse_match_stats .stat:first-child { border-top: 0; }
body .wpse_match_stats .team1_stat, body .wpse_match_stats .team2_stat { width: auto; font-family: var(--se-display); font-size: 1.35rem; font-weight: 700; }
body .wpse_match_stats .stat_title { width: auto; color: var(--se-muted); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* Timeline: one event per line. The plugin places the minute and the icon absolutely and, on a
   phone, hides everything but goals; here every event is a plain row: minute, icon, player. */
body .wpse_match_timeline .team_events { display: block; margin: 0 !important; }
body .wpse_mt.wpse_match_timeline .team .team_event { display: flex !important; align-items: center; gap: .6rem; min-height: 0; margin: 0; padding: .6rem .25rem !important; border-bottom: 1px solid var(--se-border); font-size: .9rem !important; line-height: 1.3 !important; text-align: left; }
body .wpse_mt.wpse_match_timeline .team .team_event > * { position: static !important; float: none !important; margin: 0 !important; font-size: inherit !important; line-height: inherit !important; }
body .wpse_mt.wpse_match_timeline .team .event_time { flex: none; width: 2.2rem !important; min-width: 0; padding: 0; color: var(--se-muted); font-weight: 800; font-variant-numeric: tabular-nums; }
body .wpse_mt.wpse_match_timeline .team .event_icon { display: block !important; flex: none; width: 15px; height: 15px; }
body .wpse_mt.wpse_match_timeline .team .event_player { display: inline; font-weight: 600; }
body .wpse_mt.wpse_match_timeline .team .event_player + .event_player { color: var(--se-muted); font-weight: 500; }
body .wpse_mt.wpse_match_timeline .team2 .team_event { flex-direction: row-reverse; }
body .wpse_mt.wpse_match_timeline .team2 .event_time { text-align: right; }
@media (max-width: 600px) {
  body .wpse_mt.wpse_match_timeline .team2 .team_event { flex-direction: row; }
  body .wpse_mt.wpse_match_timeline .team2 .event_time { text-align: left; }
  body .wpse_match_timeline .team2 { margin-top: 1rem; }
}

/* An empty half of a lineup (thin data) keeps its column instead of collapsing */
body .wpse_match_lineup .title ~ .team:empty::before { content: none !important; }
body .wpse_match_lineup .title:has(+ .team:empty + .team:empty) { display: none; }
body .wpse_match_lineup .team:empty::before { content: "Line-up not available"; display: block; padding: .55rem .25rem; color: var(--se-muted); font-size: .875rem; }

/* ---------- Calendar bar on a phone: the league dropdown and the date field stack */
@media (max-width: 600px) {
  body .wpse_calendar_wrap .wpse_competitions_dropdown_wrap, body .wpse_calendar_wrap .wpse_calendar_form { float: none; width: auto; text-align: left; }
  body .wpse_calendar_wrap .wpse_calendar_date { max-width: none; width: 100%; }
}
/* The lists inside a "recent" column never grow past it: names and events may wrap */
body .wpse_match_recents .wpse_matches td.meta { width: auto; white-space: nowrap; padding-left: .7rem; }
body .wpse_match_recents .wpse_matches td.score { width: auto; }
body .wpse_match_recents .wpse_matches td.team .team_name { white-space: normal; overflow: visible; }
body .wpse_match_recents .wpse_matches .team_events { margin-inline: 0 !important; }
body .wpse_match_recents .wpse_matches td.team .team_wrap { height: auto !important; overflow: visible; }

/* Scoreboard on a phone: equal side columns, names wrap instead of pushing the score off-centre */
@media (max-width: 600px) {
  body .wpse_match_title { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem .5rem; }
  body .wpse_match_title > .team .team_name { white-space: normal; overflow: visible; font-size: 1.05rem; }
  body .wpse_match_title .match_score { font-size: 2.4rem !important; line-height: 1 !important; }
  body .wpse_match_title .score .game_status { font-size: .6875rem !important; line-height: 1.2 !important; margin-top: .5rem; }
}
body .wpse_match_recents .wpse_matches td.team .team_name { word-break: normal; overflow-wrap: normal; }
body .wpse_match_recents .wpse_matches td.meta { width: 1%; }

/* ---------- Top scorers / top assists: crest and name on one centred line */
body table.wpse_table .player_wrap { display: block; height: auto !important; padding: 0 !important; overflow: visible; line-height: 1.2; }
body table.wpse_table .player_wrap > a { display: flex; align-items: center; gap: .65rem; }
body table.wpse_table span.player_photo { position: static; float: none; margin: 0; width: 1.6rem; height: 1.6rem; flex: none; display: inline-flex; align-items: center; justify-content: center; }
body table.wpse_table span.player_photo img { position: static; max-width: 100%; max-height: 100%; width: auto; height: auto; }
body table.wpse_table .player_name { float: none; font-weight: 600; }
body table.wpse_table td.player, body table.wpse_table th.player { padding-left: .6rem !important; }
