/* ── Search Results Page ───────────────────────────────────────── */

.srp-hero {
    background: #1D3557;
    color: #fff;
    padding: 28px 0 24px;
}

.srp-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.srp-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.25;
}

.srp-title em {
    font-style: normal;
    color: #93c5fd;
}

.srp-count {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

/* ── Shared inner container ── */
.srp-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Sets strip ── */
.srp-sets-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}

.srp-section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 10px;
}

.srp-sets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.srp-set-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 5px 14px 5px 7px;
    text-decoration: none;
    color: #1D3557;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.srp-set-chip:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
    text-decoration: none;
    color: #1D3557;
}

.srp-set-chip-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.srp-set-chip-name {
    white-space: nowrap;
}

.srp-set-chip-lang {
    font-size: 0.7rem;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 1px 5px;
}

/* ── Cards section ── */
.srp-cards-section {
    padding: 24px 0 48px;
}

/* ── Card grid ── */
.srp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 16px;
    margin-top: 4px;
}

/* ── Card tile ── */
.srp-card-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.srp-card-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
    text-decoration: none;
    color: inherit;
}

/* Card image — 5:7 aspect ratio (Pokémon card) */
.srp-card-img-wrap {
    aspect-ratio: 5 / 7;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.srp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.srp-card-tile:hover .srp-card-img {
    transform: scale(1.04);
}

/* Card info strip */
.srp-card-details {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.srp-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1D3557;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srp-card-variety {
    font-weight: 400;
    color: #475569;
}

.srp-card-set {
    font-size: 0.725rem;
    color: #64748b;
    margin-top: 1px;
    line-height: 1.35;
}

.srp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    gap: 4px;
}

.srp-card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #83000A;
}

.srp-card-pop {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Card held back because it would sit alone in its row; revealed on next load-more */
.srp-pending {
    display: none;
}

/* ── Load more ── */
.srp-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 36px 0 8px;
}

.srp-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1D3557;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 36px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.srp-load-more-btn:hover:not(:disabled) {
    background: #16304d;
    transform: translateY(-1px);
}

.srp-load-more-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.srp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: srp-spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes srp-spin {
    to { transform: rotate(360deg); }
}

/* ── Empty state ── */
.srp-empty {
    padding: 48px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .srp-title {
        font-size: 1.25rem;
    }

    .srp-hero-inner,
    .srp-inner {
        padding: 0 16px;
    }

    .srp-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .srp-card-name {
        font-size: 0.75rem;
    }
}
