/* ── Page header ───────────────────────────────────────────────────────── */

#sets-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

#sets-page-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1D3557;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ── Language Selector ─────────────────────────────────────────────────── */

#language-selector-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.language-selector {
    cursor: pointer;
    padding: 7px 22px;
    border-radius: 20px;
    border: 1.5px solid #dde3ed;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.15s ease;
    user-select: none;
}

.language-selector:hover {
    border-color: #1D3557;
    color: #1D3557;
}

.language-selected-active {
    background: #1D3557;
    color: #fff;
    border-color: #1D3557;
}

.language-selected-active:hover {
    opacity: 0.9;
    color: #fff;
}

/* ── Page wrapper ──────────────────────────────────────────────────────── */

#sets-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 36px 24px 64px;
}

/* ── Series section ────────────────────────────────────────────────────── */

.series-section {
    margin-bottom: 48px;
}

.series-heading {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    margin: 0 0 16px;
    padding-bottom: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.series-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── Set grid ──────────────────────────────────────────────────────────── */

.set-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* ── Set card ──────────────────────────────────────────────────────────── */

.set-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 12px 14px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #e8edf5;
    box-shadow: 0 2px 8px rgba(29, 53, 87, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    gap: 10px;
}

.set-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(29, 53, 87, 0.15);
    border-color: #c8d5e8;
}

.set-card-logo {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.set-card-logo img {
    max-width: 100%;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.set-card-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef2f8;
    color: #94a3b8;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-card-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    line-height: 1.35;
    word-break: break-word;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .set-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    #sets-page {
        padding: 20px 16px 48px;
    }

    .set-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .series-heading {
        font-size: 0.68rem;
        margin-bottom: 12px;
    }

    .set-card {
        padding: 10px 8px 10px;
        gap: 8px;
    }

    .set-card-logo {
        height: 52px;
        padding: 2px;
    }

    .set-card-logo img {
        max-height: 48px;
    }

    .set-card-name {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .set-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
