.ibh-v7-body {
    --ibh-v7-bg: #f3f6fa;
    --ibh-v7-surface: #fff;
    --ibh-v7-line: #e2e8f0;
}

.ibh-v7-discover {
    position: relative;
    padding-block: clamp(42px, 5vw, 68px);
    background: linear-gradient(180deg, #f3f6fa 0%, #fff 100%);
}

.ibh-v7-discover-heading { margin-bottom: 22px; }
.ibh-v7-discover-heading h2 { margin: 0; }
.ibh-v7-discover-heading p,
.ibh-v7-radar-feature .ibh-v7-heading p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.9;
}

.ibh-v7-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ibh-v7-path-card {
    position: relative;
    display: grid;
    min-height: 152px;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    grid-template-rows: auto 1fr;
    column-gap: 13px;
    align-items: start;
    padding: 21px 20px;
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: 20px;
    color: #0b1b32;
    background: #fff;
    box-shadow: 0 10px 24px rgba(7, 27, 53, .045);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ibh-v7-path-card::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 3px;
    background: #f58220;
    content: "";
    transform: scaleY(.35);
    transform-origin: center;
    transition: transform .2s ease;
}

.ibh-v7-path-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 130, 32, .42);
    box-shadow: 0 18px 34px rgba(7, 27, 53, .1);
}
.ibh-v7-path-card:hover::before { transform: scaleY(1); }
.ibh-v7-path-number {
    display: grid;
    width: 44px;
    height: 44px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 14px;
    color: #e7780f;
    background: #fff2e6;
    font-size: .78rem;
    font-weight: 950;
}
.ibh-v7-path-card > strong {
    align-self: center;
    color: #0a2548;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.55;
}
.ibh-v7-path-card > small {
    grid-column: 2 / span 2;
    margin-top: 8px;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.85;
}
.ibh-v7-path-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #e7780f;
    background: #fff7ed;
    font-size: 1rem;
    font-weight: 900;
}
.ibh-v7-league-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}
.ibh-v7-league-nav > span {
    margin-inline-end: 4px;
    color: #64748b;
    font-size: .73rem;
    font-weight: 900;
}
.ibh-v7-league-nav a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    background: rgba(255,255,255,.82);
    font-size: .7rem;
    font-weight: 850;
    text-decoration: none;
}
.ibh-v7-league-nav a:hover { color: #b45309; border-color: #fdba74; background: #fff7ed; }

.ibh-v7-today { padding-top: clamp(42px, 5vw, 68px); }
.ibh-v7-category-nav {
    display: flex;
    gap: 8px;
    margin: 22px 0 24px;
    padding: 3px 1px 9px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.ibh-v7-category-nav a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid #e3e8ef;
    border-radius: 999px;
    color: #34445c;
    background: #fff;
    font-size: .73rem;
    font-weight: 850;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.ibh-v7-category-nav a:hover {
    border-color: rgba(245, 130, 32, .5);
    color: #bd5b00;
    background: #fff7ed;
}

.ibh-v7-radar-feature {
    padding-block: clamp(42px, 5vw, 68px);
    background: #f7f9fc;
}
.ibh-v7-radar-feature .ibh-v7-heading { margin-bottom: 22px; }
.ibh-v7-radar-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.ibh-v7-radar-feature-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(7, 27, 53, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ibh-v7-radar-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 130, 32, .45);
    box-shadow: 0 18px 34px rgba(7, 27, 53, .1);
}
.ibh-v7-radar-feature-media {
    display: block;
    aspect-ratio: 16 / 7.5;
    overflow: hidden;
    background: #e8edf4;
}
.ibh-v7-radar-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.ibh-v7-radar-feature-card:hover img { transform: scale(1.035); }
.ibh-v7-radar-feature-copy { padding: 14px 15px 16px; }
.ibh-v7-radar-source {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 9px;
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #b45309;
    background: #fff7ed;
    font-size: .65rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ibh-v7-radar-feature-copy h3 {
    margin: 9px 0 7px;
    font-size: .92rem;
    font-weight: 950;
    line-height: 1.75;
}
.ibh-v7-radar-feature-copy h3 a { color: #0a2548; text-decoration: none; }
.ibh-v7-radar-feature-copy h3 a:hover { color: #d66b0a; }
.ibh-v7-radar-feature-copy p {
    display: -webkit-box;
    min-height: 3.3em;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ibh-v7-radar-feature-copy time {
    display: block;
    margin-top: 13px;
    color: #94a3b8;
    font-size: .66rem;
    font-weight: 750;
}
.ibh-v7-radar-empty {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: linear-gradient(110deg, #fff 0%, #fff 62%, #fff7ed 100%);
    box-shadow: 0 12px 30px rgba(7, 27, 53, .05);
}
.ibh-v7-radar-empty-mark {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #0a2548, #143d68);
    font-size: 1.25rem;
    font-weight: 950;
}
.ibh-v7-radar-empty h3 { margin: 10px 0 5px; color: #0a2548; font-size: 1.08rem; font-weight: 950; }
.ibh-v7-radar-empty p { margin: 0; color: #64748b; font-size: .82rem; line-height: 1.9; }
html[data-theme="dark"] .ibh-v7-radar-empty { border-color: #34445c; background: linear-gradient(110deg, #17243a 0%, #17243a 62%, #342719 100%); }
html[data-theme="dark"] .ibh-v7-radar-empty h3 { color: #e8eef7; }
html[data-theme="dark"] .ibh-v7-radar-empty p { color: #aab8ca; }

.ibh-v7-play-icon { font-size: 0; }
.ibh-v7-play-icon::before {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-inline-start: 11px solid currentColor;
    content: "";
}
.ibh-v7-learning-item > b { font-size: 0; }
.ibh-v7-learning-item > b::after { content: "↗"; font-size: 1.25rem; }

html[data-theme="dark"] .ibh-v7-body { --ibh-v7-bg: #101a2b; --ibh-v7-surface: #17243a; --ibh-v7-text: #e8eef7; --ibh-v7-muted: #aab8ca; --ibh-v7-line: #34445c; }
html[data-theme="dark"] .ibh-v7-discover,
html[data-theme="dark"] .ibh-v7-radar-feature { background: #101a2b; }
html[data-theme="dark"] .ibh-v7-path-card,
html[data-theme="dark"] .ibh-v7-radar-feature-card,
html[data-theme="dark"] .ibh-v7-category-nav a { color: #e8eef7; border-color: #34445c; background: #17243a; }
html[data-theme="dark"] .ibh-v7-path-card > strong,
html[data-theme="dark"] .ibh-v7-radar-feature-copy h3 a { color: #e8eef7; }
html[data-theme="dark"] .ibh-v7-path-card > small,
html[data-theme="dark"] .ibh-v7-discover-heading p,
html[data-theme="dark"] .ibh-v7-radar-feature .ibh-v7-heading p,
html[data-theme="dark"] .ibh-v7-radar-feature-copy p { color: #aab8ca; }
html[data-theme="dark"] .ibh-v7-category-nav a:hover { color: #ffb268; border-color: #a65c1c; background: #342719; }
html[data-theme="dark"] .ibh-v7-league-nav > span { color: #aab8ca; }
html[data-theme="dark"] .ibh-v7-league-nav a { color: #e8eef7; border-color: #34445c; background: #17243a; }
html[data-theme="dark"] .ibh-v7-league-nav a:hover { color: #ffb268; border-color: #a65c1c; background: #342719; }

@media (max-width: 900px) {
    .ibh-v7-path-grid,
    .ibh-v7-radar-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .ibh-v7-radar-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .ibh-v7-discover,
    .ibh-v7-radar-feature { padding-block: 38px; }
    .ibh-v7-path-grid,
    .ibh-v7-radar-feature-grid { grid-template-columns: 1fr; gap: 11px; }
    .ibh-v7-path-card { min-height: 128px; padding: 17px; }
    .ibh-v7-radar-feature .ibh-v7-heading { align-items: start; }
    .ibh-v7-radar-feature .ibh-v7-heading > a { margin-top: 4px; }
    .ibh-v7-radar-feature-copy { padding: 16px; }
    .ibh-v7-radar-empty { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
    .ibh-v7-radar-empty-mark { width: 48px; height: 48px; border-radius: 15px; }
    .ibh-v7-radar-empty > a { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
    .ibh-v7-category-nav { margin-block: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .ibh-v7-path-card,
    .ibh-v7-path-card::before,
    .ibh-v7-radar-feature-card,
    .ibh-v7-radar-feature-media img { transition: none; }
}

/* Homepage polish based on the Stitch mobile concept. */
.ibh-v7-radio .ibh-v7-eq i {
    animation-play-state: paused !important;
}

body.ib-radio-is-playing .ibh-v7-radio .ibh-v7-eq i {
    animation-play-state: running !important;
}

@media (max-width: 700px) {
    .ibh-v7-discover {
        padding-block: 30px 34px;
    }

    .ibh-v7-discover-heading {
        margin-bottom: 16px;
    }

    .ibh-v7-path-grid {
        display: flex;
        gap: 12px;
        margin-inline: -2px;
        padding: 2px 2px 12px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .ibh-v7-path-grid::-webkit-scrollbar {
        display: none;
    }

    .ibh-v7-path-card {
        flex: 0 0 min(82vw, 300px);
        min-height: 128px;
        scroll-snap-align: start;
    }

    .ibh-v7-radio {
        padding-block: 42px 46px !important;
    }

    .ibh-v7-radio .ibh-v7-heading {
        margin-bottom: 16px !important;
    }

    .ibh-v7-radio-label {
        font-size: .68rem !important;
    }

    .ibh-v7-radio-copy > p {
        font-size: .8rem !important;
        line-height: 1.8 !important;
    }

    .ibh-v7-radio-meta span {
        font-size: .68rem !important;
    }

    .ibh-v7-episodes-head small {
        font-size: .68rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ibh-v7-radio .ibh-v7-eq i {
        animation: none !important;
    }

    .ibh-v7-path-grid {
        scroll-behavior: auto;
    }
}
