/* ── Page shell ──────────────────────────────────────── */
#match-list-page {
    width: 80vw;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ── Page header ─────────────────────────────────────── */
#page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 48px 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

#page-header-left { display: flex; flex-direction: column; gap: 6px; }

#page-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.create-match-btn {
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: rgba(255,255,255,0.4);
    font-family: "Archimoto V01 Black", sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 150ms, border-color 150ms;
}

.create-match-btn:hover { color: white; border-color: rgba(255,255,255,0.35); }

/* ── Search row ──────────────────────────────────────── */
#search-row {
    margin-bottom: 28px;
}

#search-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
}

#search-form input[type="text"] {
    flex: 1;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: white;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    padding: 0 14px;
    outline: none;
    transition: border-color 150ms;
}

#search-form input[type="text"]:focus { border-color: rgba(255,255,255,0.3); }
#search-form input[type="text"]::placeholder { color: rgba(255,255,255,0.25); }

#search-form button {
    height: 40px;
    padding: 0 18px;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: rgba(255,255,255,0.7);
    font-family: "Archimoto V01 Black", sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 150ms, color 150ms;
    flex-shrink: 0;
}

#search-form button:hover { background-color: rgba(255,255,255,0.1); color: white; }

/* ── Results label ───────────────────────────────────── */
.results-label {
    font-family: "Archimoto V01", sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.results-query {
    font-family: "Archimoto V01 Black", sans-serif;
    color: rgba(255,255,255,0.6);
}

/* ── Match cards grid ────────────────────────────────── */
#match-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 150ms, border-color 150ms;
    cursor: pointer;
}

.match-card:hover {
    background-color: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.14);
}

.match-card-meta {
    font-family: "Archimoto V01 Black", sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.match-card-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.match-team {
    font-family: "Abolition", sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: white;
    flex: 1;
}

.match-team.away {
    text-align: right;
}

.match-series-score {
    font-family: "Abolition", sans-serif;
    font-size: 36px;
    letter-spacing: 2px;
    color: white;
    text-align: center;
    min-width: 80px;
}

.score-sep {
    font-size: 24px;
    color: rgba(255,255,255,0.4);
    margin: 0 6px;
}

.match-vs {
    font-family: "Archimoto V01 Black", sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.38);
    text-align: center;
    min-width: 80px;
}

.match-card-footer {
    font-family: "Archimoto V01", sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* ── Match status badges ─────────────────────────────── */
.match-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-status-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-final  { background: #1a7f3c; color: #fff; }
.status-live   { background: #7a6200; color: #ffe066; }
.status-pending { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.45); }

/* ── Empty state ─────────────────────────────────────── */
.no-results {
    font-family: "Archimoto V01", sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.25);
    text-align: center;
    padding: 60px 0;
}

/* ── Responsive ──────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    #match-list-page { width: 95vw; }
}

@media screen and (max-width: 768px) {
    #match-list-page { width: 100%; padding: 0 16px; box-sizing: border-box; }
    #page-header     { padding: 24px 0 20px; }
    .match-team { font-size: 20px; }
    .match-series-score { font-size: 26px; min-width: 60px; }
    .match-card-body { gap: 12px; }
}

@media screen and (max-width: 480px) {
    #page-header      { padding: 16px 0 12px; }
    #match-list-page  { padding-bottom: 100px; }
    .match-card       { padding: 14px 16px; }
    .match-team       { font-size: 16px; }
    .match-series-score { font-size: 20px; min-width: 48px; }
}
