/* ── Inter font ──────────────────────────────────────────── */
.lm-portal-widget, .lm-league-table, .lm-match-schedule, .lm-player-card, .lm-club-profile, .lm-club-squad, .lm-match-result, .lm-next-match-countdown, .lm-head-to-head, .lm-mini-standings, .lm-news-feed, .lm-stats-leaderboard, .lm-season-stats, .lm-club-form {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* =============================================================
   League Manager — Front-end styles  v3
   
   KEY RULE: No property that is also set by an Elementor control
   is declared here. Colours / padding / border-radius / typography
   that widgets expose as controls use control `default` values
   only.  This file contains ONLY structural / layout CSS.
   ============================================================= */

/* ── CSS custom properties (structural only) ─────────────────── */
:root {
	--lm-radius:      0;
	--lm-radius-lg:   0;
	--lm-shadow:      0 1px 4px rgba(0,0,0,.08);
	--lm-shadow-md:   0 4px 12px rgba(0,0,0,.12);
	--lm-transition:  0.18s ease;

	/* Semantic tokens — used only where no control exists */
	--lm-blue:        #0077AF;
	--lm-blue-dark:   #005f8a;
	--lm-green:       #16a34a;
	--lm-green-dark:  #15803d;
	--lm-red:         #dc2626;
	--lm-red-bg:      #fef2f2;
	--lm-red-text:    #991b1b;
	--lm-yellow-bg:   #fffbcc;
	--lm-gray-50:     #f9fafb;
	--lm-gray-100:    #f3f4f6;
	--lm-gray-200:    #e5e7eb;
	--lm-gray-400:    #9ca3af;
	--lm-gray-700:    #374151;
	--lm-gray-900:    #111827;
}

/* ── Reset helpers ───────────────────────────────────────────── */
.lm-widget,
.lm-portal,
.lm-form-wrap {
	font-family: inherit;
	line-height: 1.5;
	box-sizing: border-box;
}

.lm-widget *,
.lm-portal *,
.lm-form-wrap * {
	box-sizing: inherit;
}


/* ── Notices ─────────────────────────────────────────────────── */
.lm-notice {
	padding: 12px 16px;
	background: var(--lm-gray-100);
	border-left: 4px solid var(--lm-gray-400);
	border-radius: 0;
	margin: 1em 0;
	font-size: 14px;
	color: var(--lm-gray-700);
}

.lm-notice--error   { background: var(--lm-red-bg); border-left-color: var(--lm-red); color: var(--lm-red-text); }
.lm-notice--success { background: #f0fdf4; border-left-color: var(--lm-green); color: #14532d; }

/* ── Buttons (non-widget, used in forms / portal) ────────────── */
.lm-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	background: var(--lm-blue);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 0;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background var(--lm-transition), transform var(--lm-transition), box-shadow var(--lm-transition);
	line-height: 1.4;
}

.lm-btn:hover,
.lm-btn:focus-visible {
	background: var(--lm-blue-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(29,78,216,.3);
}

.lm-btn:active           { transform: translateY(0); }
.lm-btn--primary         { background: var(--lm-green); }
.lm-btn--primary:hover,
.lm-btn--primary:focus-visible { background: var(--lm-green-dark); }
.lm-btn:disabled         { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===============================================================
   Forms
   =============================================================== */

.lm-form-wrap { max-width: 720px; }

.lm-form__messages { display: none; padding: 12px 16px; border-radius: 0; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.lm-form__messages:not(:empty) { display: block; }
.lm-form__messages--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.lm-form__messages--error   { background: var(--lm-red-bg); border: 1px solid #fecaca; color: var(--lm-red-text); }

.lm-form__row         { margin-bottom: 20px; }
.lm-form__row--half   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .lm-form__row--half { grid-template-columns: 1fr; gap: 0; } }

.lm-form__label { display: block; font-size: 13px; font-weight: 600; color: var(--lm-gray-700); margin-bottom: 6px; letter-spacing: .01em; }
.lm-form__row--required .lm-form__label::after { content: ' *'; color: var(--lm-red); }

.lm-form__input,
.lm-form__select,
.lm-form__textarea {
	display: block; width: 100%; padding: 10px 14px; font-size: 15px; font-family: inherit;
	line-height: 1.5; color: var(--lm-gray-900); background: #fff;
	border: 1.5px solid var(--lm-gray-200); border-radius: 0;
	transition: border-color var(--lm-transition), box-shadow var(--lm-transition);
	appearance: none; -webkit-appearance: none;
}
.lm-form__input:focus,
.lm-form__select:focus,
.lm-form__textarea:focus {
	outline: none; border-color: var(--lm-blue); box-shadow: 0 0 0 3px rgba(29,78,216,.15);
}
.lm-form__input::placeholder,
.lm-form__textarea::placeholder { color: var(--lm-gray-400); }

.lm-form__select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.lm-form__textarea { resize: vertical; min-height: 100px; }

.lm-form__static { display: block; padding: 10px 14px; font-size: 15px; background: var(--lm-gray-50); border: 1.5px solid var(--lm-gray-200); border-radius: 0; color: var(--lm-gray-700); }
.lm-form__note   { font-size: 13px; color: var(--lm-gray-400); margin: 0 0 16px; line-height: 1.5; }
.lm-form__footer { padding-top: 8px; display: flex; align-items: center; gap: 12px; }
.lm-form__section-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--lm-gray-400); margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--lm-gray-200); }

/* ===============================================================
   Event builder (match report)
   =============================================================== */

.lm-event-builder { background: var(--lm-gray-50); border: 1.5px solid var(--lm-gray-200); border-radius: 0; padding: 20px; margin-bottom: 20px; }
.lm-event-builder__title { font-size: 14px; font-weight: 700; margin: 0 0 14px; color: var(--lm-gray-700); }
.lm-event-builder__row { display: grid; grid-template-columns: 2fr 1fr 2fr 2fr 1fr; gap: 10px; align-items: end; margin-bottom: 12px; }
@media (max-width: 700px) { .lm-event-builder__row { grid-template-columns: 1fr 1fr; } }
.lm-events-empty { font-size: 13px; color: var(--lm-gray-400); font-style: italic; margin: 0; }
.lm-event-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #fff; border: 1px solid var(--lm-gray-200); border-radius: 0; margin-bottom: 6px; font-size: 13px; }
.lm-event-row__label { flex: 1; }
.lm-event-row__remove { background: none; border: none; color: var(--lm-gray-400); font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; transition: color var(--lm-transition); }
.lm-event-row__remove:hover { color: var(--lm-red); }

/* ===============================================================
   League Table — STRUCTURAL only (colours/padding via controls)
   =============================================================== */

.lm-league-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lm-league-table { width: 100%; border-collapse: collapse; font-size: 14px; }

/* Sensible default sizing for small screens. Admins can still override via
   the widget's own responsive Style controls (Header/Rows cell padding,
   typography) — those generate more specific per-instance CSS and win.
   Tightened in v1.17.147 per Mike's request for smaller padding/font on
   mobile as an alternative to reordering columns. */
@media (max-width: 767px) {
	.lm-league-table { font-size: 11px; }
	.lm-league-table th,
	.lm-league-table td { padding: 4px 6px; }
	.lm-league-table .lm-club-logo { margin-right: 4px; }
}
@media (max-width: 480px) {
	.lm-league-table { font-size: 10px; }
	.lm-league-table th,
	.lm-league-table td { padding: 3px 4px; }
}


/* ===============================================================
   League Table — Responsive Columns (v1.17.144)
   Per-breakpoint column hiding, set via the widget's "Responsive
   Columns" content-tab controls. LeagueTableWidget::render() prints
   the chosen tokens as data-hide-desktop/tablet/mobile attributes on
   the persistent .lm-lt-wrap element (survives AJAX table reloads);
   the JS table builder tags each th/td with a matching .lm-col-*
   class. Position and Points are intentionally not hideable.
   =============================================================== */
@media (max-width: 767px) {
	.lm-lt-wrap[data-hide-mobile~="p"] .lm-col-p,
	.lm-lt-wrap[data-hide-mobile~="w"] .lm-col-w,
	.lm-lt-wrap[data-hide-mobile~="d"] .lm-col-d,
	.lm-lt-wrap[data-hide-mobile~="l"] .lm-col-l,
	.lm-lt-wrap[data-hide-mobile~="gf"] .lm-col-gf,
	.lm-lt-wrap[data-hide-mobile~="ga"] .lm-col-ga,
	.lm-lt-wrap[data-hide-mobile~="gd"] .lm-col-gd,
	.lm-lt-wrap[data-hide-mobile~="form"] .lm-col-form { display: none; }
	.lm-lt-wrap[data-hide-mobile~="club_name"] .lm-club-name { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.lm-lt-wrap[data-hide-tablet~="p"] .lm-col-p,
	.lm-lt-wrap[data-hide-tablet~="w"] .lm-col-w,
	.lm-lt-wrap[data-hide-tablet~="d"] .lm-col-d,
	.lm-lt-wrap[data-hide-tablet~="l"] .lm-col-l,
	.lm-lt-wrap[data-hide-tablet~="gf"] .lm-col-gf,
	.lm-lt-wrap[data-hide-tablet~="ga"] .lm-col-ga,
	.lm-lt-wrap[data-hide-tablet~="gd"] .lm-col-gd,
	.lm-lt-wrap[data-hide-tablet~="form"] .lm-col-form { display: none; }
	.lm-lt-wrap[data-hide-tablet~="club_name"] .lm-club-name { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
}
/* ===============================================================
   League Table — Auto-fit phone screens (v1.17.145)
   Zero-config default: measured live against real Greek club names
   in Chrome (see project memory) — the full 11-column table needs
   ~712px even at mobile font/padding sizes, so no phone fits it
   without scrolling. This block truncates the club name (ellipsis,
   full name preserved via title attr + still in the a11y tree) and
   drops GF/GA/GD + the form guide at <=480px, bringing the minimum
   width to ~321px, which fits essentially every real phone. Gated by
   the "Auto-fit phone screens" switcher (data-autofit) so it can be
   turned off; explicit hide_cols_mobile choices apply independently
   of this switch either way. */
@media (max-width: 480px) {
	.lm-lt-wrap[data-autofit="1"] .lm-club-name {
		display: inline-block; max-width: 92px; overflow: hidden;
		text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
	}
	.lm-lt-wrap[data-autofit="1"] .lm-col-gf,
	.lm-lt-wrap[data-autofit="1"] .lm-col-ga,
	.lm-lt-wrap[data-autofit="1"] .lm-col-gd,
	.lm-lt-wrap[data-autofit="1"] .lm-col-form { display: none; }
}

@media (min-width: 1025px) {
	.lm-lt-wrap[data-hide-desktop~="p"] .lm-col-p,
	.lm-lt-wrap[data-hide-desktop~="w"] .lm-col-w,
	.lm-lt-wrap[data-hide-desktop~="d"] .lm-col-d,
	.lm-lt-wrap[data-hide-desktop~="l"] .lm-col-l,
	.lm-lt-wrap[data-hide-desktop~="gf"] .lm-col-gf,
	.lm-lt-wrap[data-hide-desktop~="ga"] .lm-col-ga,
	.lm-lt-wrap[data-hide-desktop~="gd"] .lm-col-gd,
	.lm-lt-wrap[data-hide-desktop~="form"] .lm-col-form { display: none; }
	.lm-lt-wrap[data-hide-desktop~="club_name"] .lm-club-name { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
}

.lm-league-table th,
.lm-league-table td { border-bottom: 1px solid var(--lm-gray-200); text-align: center; padding: 10px 12px; }

.lm-league-table th:first-child,
.lm-league-table th:last-child { border-radius: 0; }
.lm-league-table .lm-col-club { text-align: left; }
.lm-league-table .lm-col-club a { text-decoration: none; font-weight: 500; }
.lm-league-table .lm-col-highlight { font-weight: 700; }
.lm-league-table tbody tr:last-child td { border-bottom: none; }

/* Club logo inside table */
.lm-league-table .lm-club-logo { vertical-align: middle; border-radius: 0; margin-right: 6px; object-fit: contain; }

/* Form guide badges */
.lm-form-guide { display: inline-flex; gap: 4px; vertical-align: middle; flex-wrap: nowrap; white-space: nowrap; }
.lm-form-badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 0;
	font-size: 10px; font-weight: 800; color: #fff; line-height: 1;
	border: 2px solid rgba(255,255,255,0.5); box-sizing: border-box; flex-shrink: 0;
}

/* Zone indicators — left border added via control selectors */
.lm-league-table tbody tr.lm-zone-1 td:first-child,
.lm-league-table tbody tr.lm-zone-2 td:first-child,
.lm-league-table tbody tr.lm-zone-3 td:first-child { border-left-width: 4px; border-left-style: solid; }

/* ===============================================================
   Match Schedule — STRUCTURAL
   =============================================================== */

.lm-match-schedule,
.lm-fixture-list { display: grid; gap: 0; }

.lm-fixture-card { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--lm-gray-200, #e5e7eb); }
.lm-fixture-card:last-child { border-bottom: none; }
.lm-fixture-card__round { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--lm-gray-400); }
.lm-fixture-card__teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lm-fixture-card__club { display: flex; align-items: center; gap: 8px; flex: 1; }
.lm-fixture-card__club--home { justify-content: flex-end; }
.lm-fixture-card__club--away { flex-direction: row-reverse; justify-content: flex-end; }
.lm-fixture-card__club-name,
.lm-fixture-card__club-name:link,
.lm-fixture-card__club-name:visited,
.lm-fixture-card__club-name:hover,
.lm-fixture-card__club-name:focus { font-weight: 600; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-fixture-card__logo { border-radius: 0; object-fit: contain; flex-shrink: 0; }

/* Match Schedule — "Hide team name on mobile" (v1.17.148). Set via the
   widget's own content-tab switch; MatchScheduleWidget::render() prints
   data-hide-name-mobile on the persistent .lm-schedule-wrap element (it
   survives the round-filter AJAX reload — only .lm-fixture-list's inner
   HTML is replaced, per MatchScheduleAjaxHandler). Visually hidden (not
   display:none) so the name stays available to screen readers; the crest
   (.lm-fixture-card__logo) is untouched either way. */
@media (max-width: 767px) {
	.lm-schedule-wrap[data-hide-name-mobile="1"] .lm-fixture-card__club-name {
		position: absolute !important; width: 1px !important; height: 1px !important;
		padding: 0 !important; margin: -1px !important; overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
	}
}
.lm-fixture-card__score-block { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; min-width: 80px; text-align: center; border-left: 1px solid var(--lm-gray-200, #e5e7eb); border-right: 1px solid var(--lm-gray-200, #e5e7eb); padding: 4px 12px; }
.lm-fixture-score { font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.lm-fixture-card__vs { font-size: 14px; font-weight: 600; color: var(--lm-gray-400); }
.lm-fixture-card__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.lm-fixture-card__meta-item { display: flex; align-items: center; gap: 4px; }

/* Status badges */
.lm-badge { display: inline-block; padding: 2px 8px; border-radius: 0; font-size: 11px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.lm-badge--scheduled { background: #dbeafe; color: #005f8a; }
.lm-badge--live      { background: var(--lm-red-bg); color: var(--lm-red-text); animation: lm-pulse 1.5s infinite; }
.lm-badge--completed { background: #dcfce7; color: #14532d; }
.lm-badge--postponed { background: #fef9c3; color: #854d0e; }
.lm-badge--cancelled { background: var(--lm-gray-100); color: var(--lm-gray-700); }

@keyframes lm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ===============================================================
   Player Card — STRUCTURAL
   =============================================================== */

.lm-player-card { overflow: hidden; max-width: 340px; }
.lm-player-card__header { text-align: center; }
.lm-player-card__photo,
.lm-player-card__photo--placeholder {
	display: block; margin: 0 auto 10px;
	object-fit: cover;
}
.lm-player-card__photo--placeholder { background: rgba(255,255,255,.2); }
.lm-player-card__position { display: inline-block; padding: 3px 10px; border-radius: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; margin-bottom: 6px; }
.lm-player-card__number  { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; opacity: .7; }
.lm-player-card__name    { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.lm-player-card__name a  { text-decoration: none; }
.lm-player-card__club    { font-size: 13px; margin-top: 2px; }
.lm-player-card__club a  { text-decoration: none; }
.lm-player-card__nationality { font-size: 12px; margin-top: 2px; opacity: .7; }

/* Stats bar */
.lm-player-card__stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.lm-player-card__stat  { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-top: 1px solid; text-align: center; }
.lm-player-card__stat-value { font-size: 18px; font-weight: 800; }
.lm-player-card__stat-label { font-size: 10px; font-weight: 600; letter-spacing: .04em; margin-top: 2px; }

/* ===============================================================
   Stats Leaderboard — STRUCTURAL
   =============================================================== */

.lm-leaderboard__title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }

.lm-leaderboard__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lm-leaderboard__table th { padding: 8px 12px; border-bottom: 2px solid var(--lm-gray-200); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: left; white-space: nowrap; }
.lm-leaderboard__table td { padding: 10px 12px; border-bottom: 1px solid var(--lm-gray-100); vertical-align: middle; }
.lm-leaderboard__table tbody tr:last-child td { border-bottom: none; }

.lm-leaderboard__col-rank  { width: 40px; text-align: center !important; }
.lm-leaderboard__col-value { text-align: right !important; }
.lm-leaderboard__col-club  { font-size: 12px; }

.lm-leaderboard__rank {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 0;
	font-size: 12px; font-weight: 800;
}

.lm-leaderboard__player-cell { display: flex; align-items: center; gap: 8px; }
.lm-leaderboard__photo { border-radius: 0; object-fit: cover; flex-shrink: 0; }
.lm-leaderboard__value { font-size: 18px; font-weight: 800; }

/* ===============================================================
   News Feed — STRUCTURAL
   =============================================================== */

.lm-news-feed { }
.lm-news-grid { display: grid; gap: 20px; }
.lm-news-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.lm-news-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.lm-news-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .lm-news-grid--cols-4 { grid-template-columns: repeat(2, 1fr); } .lm-news-grid--cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lm-news-grid--cols-4, .lm-news-grid--cols-3, .lm-news-grid--cols-2 { grid-template-columns: 1fr; } }
.lm-news-list { display: flex; flex-direction: column; }

.lm-news-card { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; }
.lm-news-list .lm-news-card { flex-direction: row; gap: 16px; }
.lm-news-card__thumb-link { display: block; overflow: hidden; flex-shrink: 0; height: 180px; }
.lm-news-card__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-news-list .lm-news-card__thumb-link { width: 120px; height: 80px; }
.lm-news-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lm-news-card__meta { font-size: 12px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lm-news-card__category { font-size: 11px; font-weight: 700; padding: 2px 8px; letter-spacing: .04em; }
.lm-news-card__title { font-size: 14px; font-weight: 700; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lm-news-card__title a { text-decoration: none; }
.lm-news-card__excerpt { font-size: 13px; line-height: 1.5; margin: 0 0 8px; }
.lm-news-card__attachment { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; text-decoration: none !important; padding: 4px 10px; border: 1px solid currentColor; border-radius: 4px; margin: 0 0 8px; align-self: flex-start; opacity: .85; }
.lm-news-card__attachment:hover { opacity: 1; }
.lm-news-card__attachment .dashicons { font-size: 15px; width: 15px; height: 15px; line-height: 1; }
/* Single news post view (appended after the_content, not inside a card) — a bit
   larger and with breathing room above since it sits after normal post text. */
.lm-news-single__attachment { font-size: 14px; padding: 8px 16px; margin-top: 16px; }
.lm-news-single__attachment .dashicons { font-size: 17px; width: 17px; height: 17px; }
.lm-news-card__read-more { font-size: 13px; font-weight: 600; text-decoration: underline; margin-top: auto; }

/* ===============================================================
   Club Profile — STRUCTURAL
   =============================================================== */

.lm-club-profile { }
.lm-club-profile__header { display: flex; align-items: center; gap: 16px; }
.lm-club-profile--horizontal .lm-club-profile__header { }
.lm-club-profile__badge { object-fit: contain; border-radius: 0; flex-shrink: 0; }
.lm-club-profile__badge--placeholder { display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 0; background: rgba(255,255,255,.2); }
.lm-club-profile__badge--placeholder .dashicons { font-size: 32px; width: 32px; height: 32px; color: rgba(255,255,255,.6); }
.lm-club-profile__name    { font-size: 20px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.lm-club-profile__founded,
.lm-club-profile__colours { display: block; font-size: 13px; margin-top: 2px; opacity: .75; }
.lm-club-profile__body    { }
.lm-club-profile__stats   { display: flex; gap: 24px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--lm-gray-100); flex-wrap: wrap; }
.lm-club-profile__stat    { text-align: center; }
.lm-club-profile__stat-value { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.lm-club-profile__stat-label { display: block; font-size: 12px; margin-top: 4px; font-weight: 500; }
.lm-club-profile__contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.lm-club-profile__contact-item { display: flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
.lm-club-profile__contact-item .dashicons { font-size: 16px; width: 16px; height: 16px; }
.lm-club-profile__history { font-size: 14px; line-height: 1.6; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lm-gray-100); }

/* ===============================================================
   Club Squad — STRUCTURAL
   =============================================================== */

.lm-squad__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lm-squad__table th { padding: 8px 12px; border-bottom: 2px solid var(--lm-gray-200); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-align: left; }
.lm-squad__table td { padding: 10px 12px; border-bottom: 1px solid var(--lm-gray-100); vertical-align: middle; }
.lm-squad__table tbody tr:last-child td { border-bottom: none; }
.lm-squad__position-header { padding: 8px 12px !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .06em !important; }
.lm-squad__col-shirt { width: 40px; text-align: center !important; font-weight: 700; }
.lm-squad__player-name-wrap { display: flex; align-items: center; gap: 10px; }
.lm-squad__photo { border-radius: 0; object-fit: cover; flex-shrink: 0; }

/* Cards layout */
.lm-squad__cards-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-bottom: 16px; }
.lm-squad__card { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: box-shadow 0.15s ease; }
.lm-squad__card-photo,
.lm-squad__card-photo--placeholder { border-radius: 0; object-fit: cover; margin-bottom: 6px; display: block; }
.lm-squad__card-photo--placeholder { background: var(--lm-gray-100); display: flex; align-items: center; justify-content: center; }
.lm-squad__card-shirt { font-size: 11px; font-weight: 800; background: #e6f4fb; padding: 1px 6px; border-radius: 0; }
.lm-squad__card-name  { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; }
.lm-squad__card-pos   { font-size: 11px; }
.lm-squad__card-nat   { font-size: 11px; }

/* ===============================================================
   Match Result — STRUCTURAL
   =============================================================== */

.lm-match-result { }
.lm-match-result__header { text-align: center; }
.lm-match-result__round  { font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; opacity: .65; }
.lm-match-result__teams  { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lm-match-result__team   { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lm-match-result__badge  { object-fit: contain; border-radius: 0; background: rgba(255,255,255,.15); }
.lm-match-result__badge--placeholder { border-radius: 0; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; }
.lm-match-result__badge--placeholder .dashicons { font-size: 28px; width: 28px; height: 28px; color: rgba(255,255,255,.5); }
.lm-match-result__team-name  { font-weight: 700; text-align: center; line-height: 1.3; }
.lm-match-result__score-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.lm-match-result__score      { display: flex; align-items: center; gap: 6px; }
.lm-match-result__score-sep  { font-size: 28px; font-weight: 700; opacity: .5; }
.lm-match-result__vs         { font-size: 24px; font-weight: 800; opacity: .5; letter-spacing: .05em; }
.lm-match-result__date       { font-size: 12px; margin-top: 12px; font-weight: 500; opacity: .65; }
.lm-match-result__status-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 0; }
.lm-match-result__meta       { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--lm-gray-200); }
.lm-match-result__meta-item  { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lm-match-result__meta-item .dashicons { font-size: 15px; width: 15px; height: 15px; }
.lm-match-result__notes      { font-size: 13px; border-top: 1px solid var(--lm-gray-100); }

/* ===============================================================
   Next Match Countdown — NEW WIDGET
   =============================================================== */

.lm-countdown-card { }
.lm-countdown-card__header { text-align: center; }
.lm-countdown-card__label  { font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 16px; opacity: .65; }
.lm-countdown-card__teams  { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lm-countdown-card__team   { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lm-countdown-card__badge  { object-fit: contain; border-radius: 0; }
.lm-countdown-card__badge--placeholder { border-radius: 0; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.lm-countdown-card__team-name { font-weight: 700; text-align: center; line-height: 1.3; }
.lm-countdown-card__vs     { font-weight: 800; opacity: .6; letter-spacing: .05em; flex-shrink: 0; }

/* Timer */
.lm-countdown-card__timer  { }
.lm-countdown-card__timer-inner { display: flex; align-items: center; justify-content: center; gap: 8px; }
.lm-cd-unit { display: flex; flex-direction: column; align-items: center; padding: 12px 16px; min-width: 64px; }
.lm-cd-digit { font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.lm-cd-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; margin-top: 4px; }
.lm-cd-sep   { font-size: 24px; font-weight: 800; align-self: flex-start; padding-top: 10px; opacity: .5; }

/* Meta strip */
.lm-countdown-card__meta        { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(0,0,0,.06); }
.lm-countdown-card__meta-item   { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lm-countdown-card__date-label  { font-size: 12px; margin-top: 8px; opacity: .65; }

/* ===============================================================
   Portal — shared layout
   =============================================================== */

.lm-portal { padding: 24px 0; }
.lm-portal--login { text-align: center; padding: 48px 24px; }
.lm-portal__heading { font-size: 22px; font-weight: 700; margin: 0 0 24px; }
.lm-portal__section { margin-bottom: 32px; }
.lm-portal__section-title { font-size: 14px; font-weight: 700; letter-spacing: .03em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--lm-gray-200); }

/* ===============================================================
   Position badges
   =============================================================== */

.lm-badge--gk  { background: #fef9c3; color: #854d0e; padding: 2px 8px; border-radius: 0; font-size: 11px; font-weight: 700; }
.lm-badge--def { background: #dbeafe; color: #005f8a; padding: 2px 8px; border-radius: 0; font-size: 11px; font-weight: 700; }
.lm-badge--mid { background: #dcfce7; color: #14532d; padding: 2px 8px; border-radius: 0; font-size: 11px; font-weight: 700; }
.lm-badge--fwd { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 0; font-size: 11px; font-weight: 700; }

/* ===============================================================
   Admin feedback
   =============================================================== */

.lm-admin-error   { color: var(--lm-red-text) !important; }
.lm-admin-success { color: var(--lm-green-dark) !important; }

.lm-status-badge { display: inline-block; padding: 2px 9px; border-radius: 0; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.6; }
.lm-status--scheduled { background: #dbeafe; color: #005f8a; }
.lm-status--live      { background: var(--lm-red-bg); color: var(--lm-red-text); }
.lm-status--completed { background: #dcfce7; color: #14532d; }
.lm-status--postponed { background: #fef9c3; color: #854d0e; }
.lm-status--cancelled { background: var(--lm-gray-100); color: var(--lm-gray-700); }

/* ===============================================================
   Accessibility — form guide shape differentiation
   =============================================================== */

/* Ensure letter is always visible (already in badge) */
.lm-form-badge { font-size: 10px; font-weight: 800; }

/* Shape differentiation for colour-blind users */
.lm-form-badge--W { border-radius: 0; }
.lm-form-badge--D { border-radius: 0; }
.lm-form-badge--L { border-radius: 0; transform: none; }

/* ===============================================================
   Head-to-Head widget
   =============================================================== */

.lm-h2h { border-radius: 0; overflow: hidden; }
.lm-h2h__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 8px; }
.lm-h2h__team { font-size: 14px; font-weight: 700; flex: 1; }
.lm-h2h__team:last-child { text-align: right; }
.lm-h2h__vs { font-size: 12px; font-weight: 600; opacity: .6; }
.lm-h2h__totals { display: flex; justify-content: space-around; padding: 20px; border-bottom: 1px solid var(--lm-gray-200); }
.lm-h2h__stat { text-align: center; }
.lm-h2h__stat-num { display: block; font-size: 32px; font-weight: 900; line-height: 1; }
.lm-h2h__stat-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; margin-top: 4px; opacity: .6; }
.lm-h2h__meetings { width: 100%; border-collapse: collapse; font-size: 13px; }
.lm-h2h__meetings th { padding: 8px 12px; background: var(--lm-gray-50); border-bottom: 2px solid var(--lm-gray-200); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: left; }
.lm-h2h__meeting td { padding: 10px 12px; border-bottom: 1px solid var(--lm-gray-100); }
.lm-h2h__meeting:last-child td { border-bottom: none; }

/* ===============================================================
   Mini Standings
   =============================================================== */

.lm-mini-standings { overflow: hidden; }
.lm-mini-standings__header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lm-mini-standings__title { font-size: 14px; font-weight: 700; }
.lm-mini-standings__view-all { font-size: 12px; font-weight: 600; text-decoration: underline; }
.lm-mini-standings__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lm-mini-standings__table th { padding: 8px 12px; border-bottom: 1px solid var(--lm-gray-200); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.lm-mini-standings__table th:nth-child(2) { text-align: left; }
.lm-mini-standings__row td { padding: 10px 12px; border-bottom: 1px solid var(--lm-gray-100); text-align: center; }
.lm-mini-standings__row td:nth-child(2) { text-align: left; }
.lm-mini-standings__row td a { text-decoration: none; font-weight: 500; }
.lm-mini-standings__row:last-child td { border-bottom: none; }
.lm-mini-standings__pts { font-weight: 700; }

/* ===============================================================
   Season Stats
   =============================================================== */

.lm-season-stats__title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.lm-season-stats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.lm-season-stats__card { padding: 16px; text-align: center; border-radius: 0; }
.lm-season-stats__value { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.lm-season-stats__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; margin-top: 4px; }

/* ===============================================================
   Schedule filter bar
   =============================================================== */

.lm-schedule-filters { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.lm-schedule-filters .lm-form__select { max-width: 200px; }
.lm-sf-spinner { display: inline-block; font-size: 18px; animation: lm-spin 0.8s linear infinite; }
.lm-sf-spinner[hidden] { display: none; animation: none; }
.lm-schedule-rounds { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.lm-sf-round {
	flex-shrink: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 9px 16px;
	border: 1px solid var(--lm-gray-200, #e5e7eb);
	border-radius: 6px;
	background: #ffffff;
	color: var(--lm-gray-700, #374151);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lm-sf-round:hover { background: var(--lm-gray-100, #f3f4f6); }
.lm-sf-round--active,
.lm-sf-round--active:hover {
	background: var(--lm-round-active-bg, #17408b);
	border-color: var(--lm-round-active-bg, #17408b);
	color: #ffffff;
}
@keyframes lm-spin { to { transform: rotate(360deg); } }
.lm-fixture-list { transition: opacity 0.2s ease; }

/* ===============================================================
   Single post templates (shared structural styles)
   =============================================================== */

.lm-single-section-title {
	font-size: 16px; font-weight: 700; letter-spacing: .05em;
	color: var(--lm-gray-400); margin: 28px 0 16px; padding-bottom: 8px;
	border-bottom: 2px solid var(--lm-gray-200);
}

/* Club */
.lm-single-club { max-width: 800px; margin: 0 auto; padding: 24px 16px; }
.lm-single-club__header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.lm-single-club__badge { width: 80px; height: 80px; object-fit: contain; border-radius: 0; }
.lm-single-club__name { margin: 0 0 4px; font-size: 28px; font-weight: 800; }
.lm-single-club__contact { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.lm-single-club__contact-item { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; }

/* Player */
.lm-single-player { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.lm-single-player__header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.lm-single-player__photo { width: 120px; height: 120px; object-fit: cover; border-radius: 0; flex-shrink: 0; }
.lm-single-player__name { margin: 0 0 4px; font-size: 26px; font-weight: 800; }
.lm-single-player__number { font-size: 14px; font-weight: 600; opacity: .6; margin-bottom: 4px; }

/* Match */
.lm-single-match { max-width: 700px; margin: 0 auto; padding: 24px 16px; }
.lm-single-match__notes { margin-top: 24px; font-size: 14px; line-height: 1.6; }
/* Hide author on news single posts */
.lm-news-single .author,
.lm-news-single .entry-author,
.lm-news-single .post-author,
.lm-news-single .byline,
.lm-news-single [class*="author"],
.lm-news-single [class*="byline"] {
	display: none !important;
}
.lm-single-venue__name { font-size: 28px; font-weight: 800; margin: 0 0 16px; }
.lm-single-venue__details { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.lm-single-venue__details dt { font-weight: 600; color: var(--lm-gray-400); }

/* ===============================================================
   Results Ticker widget
   =============================================================== */

/* Make the widget fill its Elementor container */
.elementor-widget-lm_results_ticker {
	flex: 1 1 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}
.elementor-widget-lm_results_ticker .elementor-widget-container {
	width: 100%;
	overflow: hidden;
}

.lm-results-ticker {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.lm-results-ticker__track {
	display: flex;
	width: max-content;
	animation: lm-ticker-scroll var(--lm-ticker-speed, 40s) linear infinite;
}

.lm-results-ticker--pause-hover .lm-results-ticker__track:hover {
	animation-play-state: paused;
}

.lm-results-ticker__inner {
	display: flex;
	align-items: center;
	white-space: nowrap;
	flex-shrink: 0;
}

.lm-results-ticker__league-label {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	flex-shrink: 0;
	gap: 10px;
}

.lm-results-ticker__round-badge {
	opacity: .75;
	font-weight: 400;
}

.lm-results-ticker__match {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	flex-shrink: 0;
}

.lm-results-ticker__score {
	margin: 0 16px;
}

.lm-results-ticker__sep {
	flex-shrink: 0;
	user-select: none;
}

@keyframes lm-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-1 * var(--lm-ticker-shift, 50%))); }
}

.lm-results-ticker__message {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	flex-shrink: 0;
	gap: 8px;
}

.lm-results-ticker__message-icon {
	flex-shrink: 0;
}

.lm-results-ticker__message-text {
	flex-shrink: 0;
}

a.lm-results-ticker__message-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

a.lm-results-ticker__message-link:hover .lm-results-ticker__message-text {
	text-decoration: underline;
}

/* ── News Feed: Load More ────────────────────────────────────────── */
.lm-news-feed-wrap { display: flex; flex-direction: column; gap: 24px; }

.lm-news-load-more-wrap {
	display: flex;
	justify-content: center;
}

.lm-news-load-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 32px;
	background: transparent;
	color: currentColor;
	border: 2px solid currentColor;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .18s, color .18s;
	opacity: 1;
}

.lm-news-load-more-btn:hover:not(:disabled) {
	background: currentColor;
}

.lm-news-load-more-btn:hover:not(:disabled) .lm-news-load-more-label {
	color: #fff;
	mix-blend-mode: difference;
}

.lm-news-load-more-btn:disabled {
	opacity: .6;
	cursor: default;
}

/* Spinner inside button */
.lm-news-load-more-spin {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: lm-spin .7s linear infinite;
}

/* ── News Feed: View All link ────────────────────────────────────── */
.lm-news-view-all-wrap {
	display: flex;
	justify-content: center;
}

.lm-news-view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: currentColor;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
	transition: opacity .18s;
}

.lm-news-view-all-link:hover {
	opacity: .65;
}

/* ── News Feed: Category filter bar ─────────────────────────────── */
.lm-news-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lm-news-filter-btn {
	display: inline-block;
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: 2px solid currentColor;
	background: transparent;
	color: currentColor;
	opacity: .55;
	transition: opacity .15s, background .15s, color .15s;
	line-height: 1;
}

.lm-news-filter-btn:hover {
	opacity: 1;
}

.lm-news-filter-btn.is-active {
	background: #111827;
	color: #fff !important;
	border-color: #111827;
	opacity: 1;
}


/* League Manager -- dd/mm/yyyy masked date fields (public front-end forms) */
.lm-date-wrap {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	position: relative;
	width: 100%;
}
.lm-date-text {
	box-sizing: border-box;
	flex: 1 1 auto;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: var(--lm-radius, 4px);
	font-size: 14px;
}
.lm-date-text:focus {
	outline: none;
	border-color: var(--lm-blue, #0077AF);
	box-shadow: 0 0 0 2px rgba(0,119,175,.15);
}
.lm-date-pick-btn {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: var(--lm-radius, 4px);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
}
.lm-date-pick-btn:hover { border-color: var(--lm-blue, #0077AF); }
.lm-date-native-temp {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

/* ===============================================================
   Sponsor Logo Bar widget
   =============================================================== */

.elementor-widget-lm_sponsor_bar {
	flex: 1 1 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}
.elementor-widget-lm_sponsor_bar .elementor-widget-container {
	width: 100%;
	overflow: hidden;
}

.lm-sponsor-bar {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.lm-sponsor-bar__track {
	display: flex;
	width: max-content;
	animation: lm-sponsor-scroll var(--lm-sponsor-speed, 30s) linear infinite;
	animation-direction: var(--lm-sponsor-direction, normal);
}

.lm-sponsor-bar--pause-hover .lm-sponsor-bar__track:hover {
	animation-play-state: paused;
}

.lm-sponsor-bar__inner {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.lm-sponsor-bar__frame {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
	overflow: hidden;
	transition: transform .2s ease, background-color .2s ease;
}

.lm-sponsor-bar__frame a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.lm-sponsor-bar__frame img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity .2s ease;
}

@keyframes lm-sponsor-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Cup Bracket widget (lm_cup_bracket)
   ========================================================================== */
.lm-bracket-wrap { overflow-x: auto; }
.lm-bracket {
	--lm-bracket-line-color: #d1d5db;
	--lm-bracket-line-width: 1px;
	--lm-bracket-gap: 56px;
	--lm-bracket-card-width: 220px;
	display: flex;
	align-items: flex-start;
	padding: 20px 4px;
	min-width: max-content;
}

/*
 * Layout note (v1.17.140): each round is a fixed-height relative-position
 * column; every match inside it is absolutely positioned via inline
 * top/height computed server-side from its real place in the bracket tree
 * (see CupBracketWidget::build_bracket_tree()). This replaces the earlier
 * flexbox "space-around" + nth-child(odd/even) trick, which only produced
 * correct connector lines when every round happened to halve in strict
 * adjacent pairs — real tournaments with byes or non-adjacent seeding broke
 * that assumption and drew lines to the wrong cards.
 */
.lm-bracket__round {
	position: relative;
	width: var(--lm-bracket-card-width);
	flex: 0 0 auto;
}

.lm-bracket__round:not(:last-child) { margin-right: var(--lm-bracket-gap); }

.lm-bracket__match {
	position: absolute;
	left: 0;
	right: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	padding: 6px 0;
}

/* Left stub: drawn on any match that has at least one child feeding it —
   always a plain half-gap horizontal line at its own vertical centre. */
.lm-bracket__match--has-children::before {
	content: '';
	position: absolute;
	top: 50%;
	left: calc(var(--lm-bracket-gap) / -2);
	width: calc(var(--lm-bracket-gap) / 2);
	height: 0;
	border-top: var(--lm-bracket-line-width) solid var(--lm-bracket-line-color);
}

/* Right stub: drawn on any match that has a real parent — a plain
   half-gap horizontal line at its own vertical centre (always correct:
   flex-centring the card inside its row-span box means the card's centre
   sits at 50% of the box regardless of span). */
.lm-bracket__match--has-parent::after {
	content: '';
	position: absolute;
	top: 50%;
	right: calc(var(--lm-bracket-gap) / -2);
	width: calc(var(--lm-bracket-gap) / 2);
	height: 0;
	border-top: var(--lm-bracket-line-width) solid var(--lm-bracket-line-color);
}

/* Vertical riser: a real element (not a pseudo-element, since a match can
   need both a static stub above AND this variable-length riser at once).
   --lm-conn-top / --lm-conn-height are set inline per match (in px),
   computed server-side from its actual position relative to its parent's
   centre — not guessed from CSS structure — so byes and uneven rounds
   still connect to the correct card. Collapses to a 0-height no-op for a
   bye pass-through (child and parent share the same centre). */
.lm-bracket__connector-v {
	position: absolute;
	right: calc(var(--lm-bracket-gap) / -2);
	top: var(--lm-conn-top, 50%);
	height: var(--lm-conn-height, 0);
	width: 0;
	border-right: var(--lm-bracket-line-width) solid var(--lm-bracket-line-color);
}

.lm-bracket__card {
	width: 100%;
	background: var(--lm-gray-100);
	border-radius: 10px;
	padding: 10px 14px;
	box-sizing: border-box;
}

.lm-bracket__card--bye {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px dashed var(--lm-gray-200);
	padding: 8px 12px;
}

.lm-bracket__bye-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .03em;
	color: var(--lm-gray-400);
	flex-shrink: 0;
}

.lm-bracket__card--bye .lm-bracket__team-name { font-size: 13px; font-weight: 500; color: var(--lm-gray-700); }

.lm-bracket__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.lm-bracket__date {
	font-size: 12px;
	color: var(--lm-gray-400);
	font-weight: 600;
}

.lm-bracket__round-label {
	font-size: 11px;
	color: var(--lm-gray-400);
	font-weight: 700;
	letter-spacing: .03em;
}

.lm-bracket__badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--lm-gray-200);
	color: var(--lm-gray-700);
	white-space: nowrap;
}

.lm-bracket__badge--live { background: var(--lm-red-bg); color: var(--lm-red-text); }

.lm-bracket__team {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 0;
}

.lm-bracket__team-info {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.lm-bracket__logo {
	flex-shrink: 0;
	border-radius: 3px;
	object-fit: contain;
}

.lm-bracket__team-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--lm-gray-900);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lm-bracket__score {
	font-size: 15px;
	font-weight: 600;
	color: var(--lm-gray-900);
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.lm-bracket__team--winner .lm-bracket__team-name,
.lm-bracket__team--winner .lm-bracket__score { font-weight: 800; }

.lm-bracket__win-arrow { font-style: normal; font-size: 11px; color: var(--lm-blue); }

.lm-bracket__pens {
	--lm-bracket-pens-bg: #fff7e6;
	--lm-bracket-pens-text: #92400e;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-top: 8px;
	padding: 5px 8px;
	background: var(--lm-bracket-pens-bg);
	border: 1px solid #f5cf7a;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1;
}

/* v1.17.151 fix: none of these three had white-space:nowrap/flex-shrink:0,
   so once a card got narrow enough (e.g. the "hide team name" auto-shrink
   in v1.17.150, but also just a small manually-set Card Width), the flex
   layout would shrink one of them below its content width and the browser
   wrapped the score text mid-badge ("5–" on one line, "3" on the next) —
   confirmed live on the Κ12 bracket. Fixing so the badge either fits on
   one line or, if a card is set unreasonably narrow, overflows slightly
   (caught by .lm-bracket-wrap's existing overflow-x:auto) rather than
   ever wrapping mid-content. */
.lm-bracket__pens-icon  { font-size: 13px; flex-shrink: 0; }
.lm-bracket__pens-label {
	font-weight: 700;
	letter-spacing: .03em;
	color: var(--lm-bracket-pens-text);
	white-space: nowrap;
	flex-shrink: 0;
}
.lm-bracket__pens-score {
	font-weight: 800;
	color: var(--lm-bracket-pens-text);
	white-space: nowrap;
	flex-shrink: 0;
}

@media (max-width: 782px) {
	.lm-bracket { --lm-bracket-gap: 32px; --lm-bracket-card-width: 180px; }
}

/* Cup Bracket — "Hide team name on mobile" (v1.149/.150), same option and
   same visually-hidden (not display:none) technique as the League Table's
   club_name hide and the Match Schedule's hide_club_name_mobile — full
   name stays in the a11y tree, .lm-bracket__logo crest is untouched.
   No AJAX reload path exists for this widget (single server render), so
   unlike the other two this only needs the one wrapper attribute.

   v1.17.150 fix: hiding the name alone didn't free up any actual space —
   .lm-bracket__round's width (and the connector-line gap) comes from the
   --lm-bracket-card-width/--lm-bracket-gap custom properties, which are
   fixed slider values (Style tab "Card width"/"Gap between rounds"), not
   derived from content. Hiding the name shrank .lm-bracket__team-info's
   own content down to just the 20px crest, but the surrounding column
   stayed at its configured width regardless, so nothing looked more
   compact. Measured live against a real bracket (Κ12 – Σάμου): with the
   name hidden, a plain card needs ~103px, one with a penalties badge
   needs ~156px. This rule now also overrides the two custom properties
   themselves when the toggle is on, so the whole column actually shrinks.
   Selector specificity note: checked the real generated CSS live (not
   assumed) — Elementor's Card Width/Gap Style-tab controls emit
   `.elementor-PAGEID .elementor-element.elementor-element-WIDGETID .lm-bracket`
   (4 class-level selectors: page ID + 2-class compound + .lm-bracket),
   which beats this rule's 3 class-level selectors on plain specificity.
   Needed `!important` on both custom properties below to reliably win —
   first version of this fix (no !important) looked correct on paper but
   would have silently lost to Elementor's rule in practice. */
@media (max-width: 782px) {
	.lm-bracket-wrap[data-hide-name-mobile="1"] .lm-bracket__team-name {
		position: absolute !important; width: 1px !important; height: 1px !important;
		padding: 0 !important; margin: -1px !important; overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
	}
	.lm-bracket-wrap[data-hide-name-mobile="1"] .lm-bracket {
		--lm-bracket-card-width: 140px !important;
		--lm-bracket-gap: 20px !important;
	}
}

/* ── Champion Celebration overlay (v1.17.143) ──────────────────
   .lm-champion-celebration is the hidden server-rendered data carrier
   (see ChampionCelebrationWidget::render()); frontend.js builds
   .lm-cc-overlay as its sibling, inside the same Elementor {{WRAPPER}}
   element, so the custom properties + Group_Control_Box_Shadow /
   Group_Control_Typography selectors below (which all target
   "{{WRAPPER}} .lm-cc-*") keep applying without any extra plumbing. */
/* html.lm-cc-scroll-locked is toggled by frontend.js for the celebration's
   lifetime -- prevents the page underneath from having any scroll position
   for a mobile touch-drag to move the (position:fixed) overlay along with. */
html.lm-cc-scroll-locked,
html.lm-cc-scroll-locked body {
	overflow: hidden;
	touch-action: none;
}

.lm-cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999995;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --lm-cc-backdrop, rgba(17,24,39,0.9) );
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	overflow: hidden;
	/* Stops mobile browsers from treating a touch-drag on the overlay as a
	   pan/scroll gesture -- this is what let the whole overlay be dragged
	   left/right by touch before this fix. */
	touch-action: none;
}

.lm-cc-overlay.is-active {
	opacity: 1;
	pointer-events: auto;
}

.lm-cc-overlay.is-leaving {
	opacity: 0;
}

.lm-cc-confetti-layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.lm-cc-confetti-piece {
	position: absolute;
	top: -24px;
	width: 9px;
	height: 15px;
	opacity: 0.95;
	will-change: transform, opacity;
	animation-name: lm-cc-fall;
	animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
	animation-fill-mode: forwards;
}

@keyframes lm-cc-fall {
	0%   { transform: translate3d(0, -40px, 0) rotate(0deg); opacity: 1; }
	85%  { opacity: 1; }
	100% { transform: translate3d(var(--lm-cc-drift, 0), 108vh, 0) rotate(var(--lm-cc-spin, 540deg)); opacity: 0.85; }
}

.lm-cc-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
	padding: 32px;
	max-width: 90vw;
	transform: scale(0.8);
	opacity: 0;
	transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.lm-cc-overlay.is-active .lm-cc-content {
	transform: scale(1);
	opacity: 1;
}

.lm-cc-logo {
	width: var( --lm-cc-logo-size, 160px );
	height: var( --lm-cc-logo-size, 160px );
	border-radius: 50%;
	background: var( --lm-cc-logo-bg, #ffffff );
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	animation: lm-cc-logo-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.lm-cc-logo img {
	width: 76%;
	height: 76%;
	object-fit: contain;
}

.lm-cc-logo--fallback {
	font-size: calc(var(--lm-cc-logo-size, 160px) * 0.4);
}

@keyframes lm-cc-logo-pop {
	0%   { transform: scale(0) rotate(-18deg); opacity: 0; }
	100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.lm-cc-banner__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: var( --lm-cc-banner-color, #ffffff );
	text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.lm-cc-banner__subtitle {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: var( --lm-cc-subtitle-color, #f3f4f6 );
	text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.lm-cc-close {
	position: absolute;
	top: 18px;
	right: 22px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.2);
	color: #ffffff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--lm-transition);
}

.lm-cc-close:hover {
	background: rgba(255,255,255,0.32);
}

@media (max-width: 600px) {
	.lm-cc-banner__title { font-size: 24px; }
	.lm-cc-content { gap: 14px; padding: 24px; }
}
