.retro-ticker {
    background: #000;
    border-bottom: 2px solid var(--fifa-pink);
    color: var(--fifa-lime);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    overflow: hidden;
    white-space: nowrap;
    padding: 4px 0;
}

.retro-ticker__content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 22s linear infinite;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.filters {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #15161d;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--fifa-blue);
    box-shadow: inset 2px 2px 0px rgba(255, 255, 255, 0.05);
}

.filters__heading h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-style: italic;
}

.filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field span {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-select {
    height: 2.6rem;
    padding: 0 0.75rem;
    background: #090a0e;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.form-select:focus {
    border-color: var(--fifa-lime);
    box-shadow: 0 0 8px rgba(184, 255, 82, 0.4);
}

.matches-grid {
    display: grid;
    gap: 2rem;
}

.match-day {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-day__heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fifa-gold);
    letter-spacing: 0.08em;
}

.match-day__heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.match-day__games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.match-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    transition: background-color 0.15s ease, border-color 0.15s ease;
    position: relative;
    z-index: 3;
}

.match-card:hover {
    background: var(--card-bg-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.match-card:focus-visible {
    outline: 2px solid var(--fifa-lime);
}

.match-card__stage {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 400;
    line-height: 1.2;
}

.match-card__content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.85rem;
}

.match-card__teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.match-team__flag,
.match-team__flag-space {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.match-team__name {
    flex: 1;
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-team__score-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    padding-left: 0.5rem;
}

.match-team__score {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
    min-width: 1rem;
    text-align: right;
}

.match-team.is-winner .match-team__name,
.match-team.is-winner .match-team__score {
    font-weight: 600;
    color: #ffffff;
}

.match-team__winner-arrow {
    font-size: 0.65rem;
    color: #ffffff;
    line-height: 1;
}

.match-card__divider {
    width: 1px;
    height: 80%;
    background: rgba(255, 255, 255, 0.14);
}

.match-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    text-align: center;
}

.match-card__status {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.match-card__date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
}

.loading-text,
.no-results {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: 'VT323', monospace;
    letter-spacing: 0.05em;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

@media (max-width: 820px) {
    .match-day__games {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .matches-page-wrapper {
        padding: 1rem;
        margin: 0;
    }

    .match-card__meta {
        min-width: 3.8rem;
    }

    .match-card__status {
        font-size: 0.8rem;
    }

    .match-card__date {
        font-size: 0.7rem;
    }
}