/* ── FHP Public Styles ─────────────────────────────────────────────────────── */

/* ── Standings table ─────────────────────────────────────────────────────── */
.fhp-table-wrap { overflow-x: auto; margin: 1.5em 0; }

.fhp-table-title {
    margin: 0 0 .5em;
    font-size: 1.1em;
    font-weight: 700;
    border-bottom: 2px solid #1d2327;
    padding-bottom: .3em;
}

.fhp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
    background: #fff;
}

.fhp-table thead { background: #1d2327; color: #fff; }
.fhp-table th    { padding: 8px 10px; text-align: center; font-weight: 600; cursor: default; }
.fhp-table td    { padding: 7px 10px; text-align: center; border-bottom: 1px solid #ebebeb; }

.fhp-col-club    { text-align: left !important; min-width: 120px; }
.fhp-col-pos     { width: 32px; }
.fhp-col-pts     { font-weight: 700; background: #f6f7f7; }

.fhp-row--top td { background: #f0fff4; }

.fhp-pos { color: #00a32a; font-weight: 600; }
.fhp-neg { color: #d63638; }

.fhp-club-logo       { display: inline-block; vertical-align: middle; margin-right: 6px; }
.fhp-club-logo img   { width: 22px; height: 22px; object-fit: contain; border-radius: 2px; }

.fhp-no-data  { color: #787c82; font-style: italic; }
.fhp-error    { color: #d63638; }

/* ── Fixtures list ───────────────────────────────────────────────────────── */
.fhp-fixtures-wrap { margin: 1.5em 0; }

.fhp-round-header {
    margin: 1.4em 0 .4em;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #50575e;
}

.fhp-fixture {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    flex-wrap: wrap;
}

.fhp-fixture--played   { border-left: 3px solid #00a32a; }
.fhp-fixture--upcoming { border-left: 3px solid #2271b1; }

.fhp-fixture__date {
    min-width: 90px;
    font-size: .8em;
    color: #50575e;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.fhp-fixture__day  { font-weight: 700; text-transform: uppercase; font-size: .75em; }
.fhp-fixture__dmy  { font-size: .85em; }
.fhp-fixture__time { color: #787c82; }

.fhp-fixture__teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fhp-fixture__home,
.fhp-fixture__away { flex: 1; font-weight: 600; }
.fhp-fixture__home { text-align: right; }
.fhp-fixture__away { text-align: left; }

.fhp-fixture__score {
    min-width: 60px;
    text-align: center;
    font-size: 1.15em;
    font-weight: 700;
    color: #1d2327;
}

.fhp-fixture__sep { margin: 0 2px; font-weight: 400; }
.fhp-fixture__vs  { font-size: .75em; font-weight: 400; color: #787c82; }

.fhp-fixture__meta {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .78em;
    color: #50575e;
    margin-top: 2px;
}

.fhp-badge {
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 2px;
    padding: 1px 6px;
    font-size: .85em;
}

/* ── Admin fixture result entry ──────────────────────────────────────────── */
.fhp-fixtures-admin .fhp-score-col { text-align: center; white-space: nowrap; }
.fhp-fixtures-admin .fhp-team-name { font-weight: 600; }
.fhp-status                         { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: .8em; }
.fhp-status--scheduled              { background: #ddf3ff; color: #135e96; }
.fhp-status--completed              { background: #d8f5e5; color: #145f2a; }
.fhp-status--cancelled              { background: #f8d7d7; color: #8a2121; }
.fhp-comp-filter                    { margin: 8px 0 16px; }

/* ── Bracket ─────────────────────────────────────────────────────────────── */
.fhp-bracket-wrap   { overflow-x: auto; margin: 1.5em 0; }
.fhp-bracket-title  { margin: 0 0 1em; font-size: 1.2em; font-weight: 700; }

.fhp-bracket {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    min-width: max-content;
}

.fhp-bracket-round  { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.fhp-round-label    { font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #50575e; margin: 0 0 8px; }

.fhp-bracket-match {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.fhp-bracket-team {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    font-size: .88em;
    border-bottom: 1px solid #f0f0f1;
}

.fhp-bracket-team:last-of-type { border-bottom: none; }

.fhp-bracket-vs {
    text-align: center;
    font-size: .7em;
    color: #787c82;
    padding: 1px 0;
    background: #f6f7f7;
    border-top: 1px solid #f0f0f1;
    border-bottom: 1px solid #f0f0f1;
}

.fhp-team--winner { font-weight: 700; background: #f0fff4; }
.fhp-team--loser  { color: #787c82; }
.fhp-trophy       { margin-left: auto; font-size: .85em; }
.fhp-club-thumb   { width: 18px; height: 18px; object-fit: contain; border-radius: 2px; flex-shrink: 0; }

.fhp-match--done  { border-color: #00a32a; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .fhp-fixture { flex-direction: column; align-items: flex-start; }
    .fhp-fixture__teams { flex-direction: column; width: 100%; }
    .fhp-fixture__home,
    .fhp-fixture__away { text-align: left; }
}

/* -- Competition single-page tabs ------------------------------------------ */
.fhp-comp-view { margin-top: 1.5em; }
.fhp-comp-view h3 { font-size: 1.1em; margin: 1.5em 0 .5em; }

.fhp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #dcdcde;
    margin-bottom: 1em;
    flex-wrap: wrap;
}
.fhp-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 8px 18px;
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
    color: #50575e;
    transition: color .15s, border-color .15s;
}
.fhp-tab:hover         { color: #135e96; }
.fhp-tab--active       { color: #135e96; border-bottom-color: #135e96; }
.fhp-tab-panel         { display: none; }
.fhp-tab-panel--active { display: block; }
