.resultats-hero {
    padding-bottom: 0;
}

.resultats-avis {
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-text-suau);
    font-size: 0.95rem;
    line-height: 1.6;
}

.resultats-avis a {
    color: var(--color-taronja);
    font-weight: 600;
}

.resultats-cta {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.7rem 1.6rem;
    background: var(--color-taronja);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.resultats-cta:hover {
    background: var(--color-taronja-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Cercador ─────────────────────────────────────────────── */
.resultats-cercador {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.resultats-cercador__camp--reset {
    display: flex;
    align-items: flex-end;
}

.resultats-reset {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1.5px solid var(--color-taronja);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    background: #fff;
    color: var(--color-taronja);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.resultats-reset:hover {
    background: var(--color-taronja);
    color: #fff;
}

.resultats-cercador__camp--cursa {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .resultats-cercador__camp--cursa {
        grid-column: span 2;
    }
}

.resultats-cercador__camp label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #666;
    margin-bottom: 0.3rem;
}

.resultats-cercador__camp select,
.resultats-cercador__camp input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fafafa;
    color: #1a1a1a;
}

.resultats-cercador__camp select:focus,
.resultats-cercador__camp input:focus {
    outline: none;
    border-color: var(--color-taronja);
    background: #fff;
}

/* ── Resultat ─────────────────────────────────────────────── */
.resultats-sortida {
    min-height: 2rem;
}

.resultats-carregant,
.resultats-error,
.resultats-buit {
    text-align: center;
    color: var(--color-text-suau);
    padding: 2rem 0;
}

.resultats-error {
    color: #c0392b;
}

.resultats-comptador {
    font-size: 0.85rem;
    color: var(--color-text-suau);
    margin-bottom: 0.5rem;
}

.resultats-subtitol {
    font-weight: 700;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--color-text);
}

.taula-wrap {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.resultats-taula {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
}

.resultats-taula th,
.resultats-taula td {
    padding: 0.5rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.resultats-taula th {
    background: var(--color-blau);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--color-taronja);
    position: sticky;
    top: 0;
}

.resultats-taula td {
    color: #1a1a1a;
}

.resultats-taula tbody tr:hover {
    background: #fff7ef;
}

.resultats-taula--apagada {
    opacity: 0.7;
}

.resultats-taula--equips .fila-equip-inici td {
    border-top: 2px solid var(--color-taronja);
}

.resultats-c3c-cel {
    width: 20px;
    padding: 0.2rem 0.3rem !important;
    text-align: center !important;
}

.resultats-c3c-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ── Targetes oficials (compactes) ───────────────────────────── */
.resultats-oficials {
    background: #f8f8f8;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.resultats-oficials__titol {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.resultats-oficials__llista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.resultats-oficials__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    padding: 0.45rem 1rem 0.45rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.resultats-oficials__link:hover {
    border-color: var(--color-taronja);
    color: var(--color-taronja);
}

.resultats-oficials__link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
