/* =============================================================================
   /browse/<console> — A-Z game index for one console
   Shares the card language of /browse and /top-games, but the tile is a
   portrait cover (IGDB box art) with the game name beneath it.
   ========================================================================== */

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
/* Plain padded container, mirroring /browse's .browse-page — no position or
   stacking scaffolding, so it never interferes with the fixed header. */
.bc-page {
    padding: 16px 14px 88px;
}

/* ── Back link ────────────────────────────────────────────────────────────── */
.bc-back {
    font-family: 'Electrolize', sans-serif;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--v2-cyan);
    text-decoration: none;
    margin-bottom: 14px;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.bc-header {
    text-align: center;
    padding: 0 2px 18px;
}
.bc-logo {
    max-height: 44px;
    max-width: 60%;
    object-fit: contain;
    margin-bottom: 10px;
}
.bc-heading {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--v2-text);
    margin: 0 0 5px;
}
.bc-sub {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    color: var(--v2-text-dim);
    margin: 0;
}

/* ── Listings link ────────────────────────────────────────────────────────── */
.bc-listings-cta {
    font-family: 'Electrolize', sans-serif;
    display: inline-block;
    margin-top: 12px;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    color: var(--v2-cyan);
    text-decoration: none;
    border-bottom: 1px solid var(--v2-cyan-25);
    padding-bottom: 2px;
}

/* ── Search box ───────────────────────────────────────────────────────────── */
.bc-form {
    margin-bottom: 20px;
}
.bc-go {
    width: 100%;
}
.bc-clear {
    font-family: 'Electrolize', sans-serif;
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: var(--v2-text-dim);
    text-decoration: underline;
}

/* ── Card grid ────────────────────────────────────────────────────────────── */
.bc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}
@media (min-width: 480px) {
    .bc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Individual card ──────────────────────────────────────────────────────── */
.bc-card {
    font-family: 'Electrolize', sans-serif;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 217, 255, 0.22);
    border-radius: 8px;
    background: rgba(10, 10, 20, 0.65);
    overflow: hidden;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.bc-card:active,
.bc-card:focus-visible {
    border-color: var(--v2-cyan);
    background: rgba(0, 217, 255, 0.06);
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.18);
    outline: none;
}

/* ── Card cover art ───────────────────────────────────────────────────────── */
/* Fixed 3:4 box so a missing/odd-ratio cover can't make one card taller than
   its row-mates; the art is contained inside it rather than cropped. */
.bc-card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    background: #0a0e27;
}
.bc-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bc-card-fallback {
    font-size: 1.6rem;
    color: var(--v2-cyan-25);
}

/* ── Card label ───────────────────────────────────────────────────────────── */
/* Two lines max, ellipsised — long titles stay inside the tile. */
.bc-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    padding: 7px 8px 9px;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: center;
    color: var(--v2-text-dim);
    line-height: 1.3;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.bc-empty {
    text-align: center;
    padding: 46px 16px;
    color: var(--v2-text-dim);
}
.bc-empty-icon {
    font-size: 2rem;
    color: var(--v2-cyan-25);
    margin-bottom: 12px;
}
.bc-empty-text {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
/* Same visual language as /search's pager, but plain links (own class names so
   this page doesn't depend on search.css being loaded). */
.bc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 0 4px;
}
.bc-page-btn {
    font-family: 'Electrolize', sans-serif;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    border: 2px solid var(--v2-cyan);
    color: var(--v2-cyan);
    border-radius: 4px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.bc-page-btn.disabled {
    opacity: 0.35;
    cursor: default;
}
.bc-page-number {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--v2-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 110px;
    text-align: center;
}
