/* Arsenal-first prediction hubs and the responsive bridge between phone and desktop. */
.nb-predictions-page .nb-pred-hub-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 22px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(8, 14, 24, .72);
    scrollbar-width: none;
}

.nb-predictions-page .nb-pred-hub-switch::-webkit-scrollbar { display: none; }

.nb-predictions-page .nb-pred-hub-switch a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 10px;
    color: #b9c2cf;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.nb-predictions-page .nb-pred-hub-switch a:hover,
.nb-predictions-page .nb-pred-hub-switch a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.nb-predictions-page .nb-pred-hub-switch a[aria-current="page"] {
    color: #fff;
    background: #e30613;
    box-shadow: 0 6px 18px rgba(227, 6, 19, .28);
}

.nb-predictions-page .nb-pred-intro {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(227, 6, 19, .18), transparent 44%), linear-gradient(135deg, #101c2e, #09111d);
}

.nb-predictions-page .nb-pred-intro h1 {
    max-width: 720px;
    letter-spacing: -.035em;
}

.nb-match-hero-meta {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
}

/* The former 980px cut-off allowed the desktop three-column shell to crush its
 * central predictor on iPad/tablet widths. Keep the main experience spacious
 * until there is genuinely enough room for three independent columns. */
@media (min-width: 981px) and (max-width: 1199px) {
    body.nb-matchday-platform .nb-unified-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 22px !important;
    }

    body.nb-matchday-platform .nb-unified-layout > main,
    body.nb-matchday-platform .nb-unified-layout > article,
    body.nb-matchday-platform .nb-unified-layout .nb-single-match-main {
        order: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.nb-matchday-platform .nb-unified-layout .nb-unified-sidebar {
        position: static !important;
        top: auto !important;
        order: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.nb-matchday-platform .nb-predictions-page .nb-pred-section {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) {
    .nb-predictions-page .nb-pred-hub-switch { width: fit-content; max-width: 100%; }
}

@media (max-width: 767px) {
    .nb-predictions-page .nb-pred-intro { padding: 18px; border-radius: 15px; }
    .nb-predictions-page .nb-pred-intro h1 { font-size: clamp(25px, 8vw, 34px); }
}
