/* Se3me motion + new components (History, Up Next, Continue Watching details).
   Loaded after se3me-theme.css. Everything here is switched off for users who
   ask their system for reduced motion (bottom of file). */

:root {
    --press-scale: 0.96;
    --enter-dur: 0.42s;
}

/* ── Page load ── */
body {
    animation: pageFade 0.5s var(--ease) both;
}

.app-sidebar {
    animation: sidebarIn 0.55s var(--ease) both;
}

.app-topbar {
    animation: topbarIn 0.5s var(--ease) 0.05s both;
}

.mobile-bottom-nav {
    animation: bottomNavIn 0.5s var(--ease) 0.1s both;
}

@keyframes pageFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sidebarIn {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: none; }
}

@keyframes topbarIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}

@keyframes bottomNavIn {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: none; }
}

.sidebar-link.nav-link:nth-child(5) { animation-delay: 0.24s; }

/* ── View changes: sections replay their entrance every time they are shown ── */
.cw-section,
#discoverSection,
#discoverRowsSection,
#searchResultsSection,
.watchlist-section,
.history-section,
.context-bar.show {
    animation: sectionIn var(--enter-dur) var(--ease) both;
}

#forYouSection { animation-delay: 0.04s; }
#fromWatchlistSection { animation-delay: 0.08s; }
#becauseYouSection { animation-delay: 0.12s; }

#playerSection {
    animation: playerIn 0.5s var(--ease) both;
}

@keyframes sectionIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes playerIn {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

/* Cards stagger in (JS sets --i on each card) */
.result-card,
.cw-card {
    animation-delay: calc(var(--i, 0) * 38ms);
}

/* ── Press feedback on everything clickable ── */
.btn,
.nav-link,
.mbn-item,
.ghost-btn,
.page-btn,
.history-chip,
.history-episode,
.profile-menu-item,
.profile-menu-btn,
.poster-action-btn,
.card-bookmark-btn,
.featured-hero-arrow,
.profile-card,
.avatar-option,
.cp-btn,
.nav-search-btn,
.modal-close-btn {
    -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled),
.ghost-btn:active:not(:disabled),
.page-btn:active:not(:disabled),
.history-chip:active,
.history-episode:active,
.profile-menu-item:active,
.profile-menu-btn:active,
.modal-close-btn:active {
    transform: scale(var(--press-scale));
    transition-duration: 0.08s;
}

/* The hero arrows are centred with translateY; keep that while pressed */
.featured-hero-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

.sidebar-link.nav-link:active {
    transform: translateX(3px) scale(0.97);
}

.poster-action-btn:active,
.card-bookmark-btn:active {
    transform: scale(0.86);
}

.result-card:active .result-poster,
.cw-card:active .cw-poster-wrap,
.history-poster:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.profile-card:active .profile-card-avatar,
.avatar-option:active {
    transform: scale(0.94);
}

/* Ripple (motion.js adds .press-ripple inside the pressed control) */
.press-ripple-host {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.press-ripple {
    position: absolute;
    width: var(--ripple-size, 120px);
    height: var(--ripple-size, 120px);
    margin: calc(var(--ripple-size, 120px) / -2) 0 0 calc(var(--ripple-size, 120px) / -2);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 200, 0.35) 0%, rgba(232, 163, 61, 0.18) 45%, transparent 70%);
    transform: scale(0);
    opacity: 1;
    animation: ripple 0.55s var(--ease) forwards;
}

.btn:not(.btn-secondary):not(.btn-danger):not(.btn-ghost) .press-ripple {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
}

@keyframes ripple {
    to { transform: scale(1); opacity: 0; }
}

/* Nav icons bounce when a view is picked */
.nav-link.active i,
.mbn-item.active i {
    animation: iconPop 0.42s var(--ease-spring);
}

@keyframes iconPop {
    0% { transform: scale(0.7); }
    60% { transform: scale(1.22); }
    100% { transform: scale(1.15); }
}

.mbn-item.active i {
    animation-name: iconPopMobile;
}

@keyframes iconPopMobile {
    0% { transform: scale(0.75) translateY(2px); }
    60% { transform: scale(1.15) translateY(-2px); }
    100% { transform: none; }
}

.mbn-item.active::before {
    animation: navBarIn 0.32s var(--ease) both;
}

@keyframes navBarIn {
    from { width: 0; opacity: 0; }
    to { width: 28px; opacity: 1; }
}

/* Profile menu drops open */
.profile-menu:not([hidden]) {
    animation: menuIn 0.2s var(--ease) both;
    transform-origin: top right;
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

/* Toasts leave smoothly too */
.toast.toast-out {
    animation: toastOut 0.25s var(--ease) forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(-10px) scale(0.97); }
}

/* Player loader fades instead of popping */
.player-loader {
    transition: opacity 0.25s var(--ease), visibility 0.25s;
}



/* ── Small screens ── */
@media (max-width: 768px) {
    /* Arrows sat on top of the slide text; swipe instead (dots still work) */
    .featured-hero-arrow {
        display: none;
    }

    .cw-section-title {
        font-size: 1.2rem;
        align-items: center;
    }

    .cw-section-title > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cw-section-title::after {
        min-width: 16px;
    }
}

/* Touch screens scroll rows by swiping; hide the scrollbar lines under them */
@media (hover: none) {
    .cw-row,
    .row-track {
        scrollbar-width: none;
    }

    .cw-row::-webkit-scrollbar,
    .row-track::-webkit-scrollbar {
        display: none;
    }
}

/* ── Continue Watching details ── */
.cw-poster-wrap {
    cursor: pointer;
}

.cw-poster-wrap:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 3px;
}

/* Remove (✕) appears on hover where there is a mouse; always shown on touch screens */
@media (hover: hover) and (pointer: fine) {
    .cw-remove-btn {
        opacity: 0;
        transition: opacity 0.2s var(--ease), transform 0.18s var(--ease);
    }

    .cw-card:hover .cw-remove-btn,
    .cw-remove-btn:focus-visible {
        opacity: 1;
    }
}

.cw-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(8, 9, 10, 0.78);
    border: 1px solid var(--border-glow);
    color: var(--accent-secondary);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cw-episode {
    margin-top: 2px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-progress-fill {
    transition: width 0.6s var(--ease);
    animation: progressGrow 0.9s var(--ease) both;
    transform-origin: left center;
}

@keyframes progressGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ── Up Next (episode autoplay) ── */
.up-next {
    position: absolute;
    right: 18px;
    bottom: 84px;
    z-index: 30;
    width: min(320px, calc(100% - 36px));
    padding: 14px 16px 16px;
    border-radius: 14px;
    background: rgba(12, 12, 13, 0.9);
    border: 1px solid var(--border-glow);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

.up-next.show {
    opacity: 1;
    transform: none;
}

.up-next-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-secondary);
}

.up-next-title {
    margin-top: 4px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.up-next-countdown {
    min-height: 1.1em;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.up-next-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.up-next-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.85rem;
}

/* ── History page ── */
.history-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
}

.history-section .card-header h3 {
    font-family: var(--font-display);
}

.history-summary {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.history-chip {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.18s var(--ease);
}

.history-chip:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.history-chip.active {
    color: var(--accent-on);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    animation: historyIn 0.45s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 32ms);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.history-item:hover {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.035);
}

@keyframes historyIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.history-poster {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    aspect-ratio: 2 / 3;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.history-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-poster:hover {
    border-color: rgba(232, 163, 61, 0.5);
}

.history-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.history-title-row h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.history-type,
.history-year {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.history-type {
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-when,
.history-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.history-done {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--success);
    font-weight: 600;
}

.history-progress,
.history-ep-bar {
    position: relative;
    height: 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.history-progress {
    max-width: 360px;
}

.history-progress > span,
.history-ep-bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform-origin: left center;
    animation: progressGrow 0.8s var(--ease) both;
}

.history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-body > .history-resume,
.history-actions .btn {
    align-self: flex-start;
    padding: 7px 12px;
    font-size: 0.82rem;
}

.btn.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    box-shadow: none;
}

.btn.btn-ghost:hover:not(:disabled) {
    background: rgba(232, 163, 61, 0.08);
    color: var(--text-primary);
    box-shadow: none;
    transform: none;
}

.history-toggle i {
    transition: transform 0.25s var(--ease);
}

.history-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.history-episodes {
    display: grid;
    gap: 4px;
    margin-top: 4px;
    animation: sectionIn 0.3s var(--ease) both;
}

.history-episodes[hidden] {
    display: none;
}

.history-episode {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) minmax(60px, 140px) 42px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.18s var(--ease);
}

.history-episode:hover {
    background: rgba(232, 163, 61, 0.08);
    border-color: var(--border-color);
}

.history-ep-num {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent-secondary);
}

.history-ep-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.history-ep-pct {
    justify-self: end;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.history-episode.is-done .history-ep-pct {
    color: var(--success);
    font-size: 1rem;
}

.history-loading {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 36px 0;
}

.history-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: dotBounce 1s var(--ease) infinite;
}

.history-loading span:nth-child(2) { animation-delay: 0.12s; }
.history-loading span:nth-child(3) { animation-delay: 0.24s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-8px); opacity: 1; }
}

@media (max-width: 600px) {
    .history-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -4px 16px;
        padding: 0 4px 2px;
        scrollbar-width: none;
    }

    .history-filters::-webkit-scrollbar {
        display: none;
    }

    .history-chip {
        flex: 0 0 auto;
    }

    .history-item {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .history-poster {
        width: 60px;
    }

    .history-episode {
        grid-template-columns: 64px minmax(0, 1fr) 42px;
    }

    .history-ep-bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .up-next {
        right: 10px;
        bottom: 64px;
        width: calc(100% - 20px);
    }
}



/* Boxicons 3 dropped its .bx-spin helper; the batch list still uses it */
.bx-spin {
    display: inline-block;
    animation: spin 0.9s linear infinite;
}

/* Settings only has a couple of rows: size the dialog to them instead of 920px */
#profileDialog:has(#modalViewSettings:not([hidden])) {
    width: min(480px, calc(100vw - 32px));
}

/* Views inside the profile dialog slide in when switched */
#profileDialog .modal-view:not([hidden]) {
    animation: sectionIn 0.3s var(--ease) both;
}

/* ── Sports ── */
.sidebar-link.nav-link:nth-child(6) { animation-delay: 0.29s; }

.nav-live-dot,
.chip-live-dot,
.sports-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6);
    animation: livePulse 1.6s ease-out infinite;
}

.nav-live-dot {
    margin-left: auto;
}

.chip-live-dot {
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.chip-count {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.history-chip.active .chip-count {
    background: rgba(0, 0, 0, 0.16);
}

.sports-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
}

.sports-section .card-header h3 {
    font-family: var(--font-display);
}

.sports-group + .sports-group {
    margin-top: 26px;
}

.sports-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sports-group-title > span:last-child {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.sports-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    animation: historyIn 0.45s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 28ms);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sports-card:hover {
    border-color: var(--border-glow);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.sports-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

.sports-card.is-live {
    border-color: rgba(255, 77, 77, 0.28);
    background: linear-gradient(160deg, rgba(255, 77, 77, 0.07), rgba(255, 255, 255, 0.02) 55%);
}

.sports-card.is-live:hover {
    border-color: rgba(255, 77, 77, 0.5);
}

.sports-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sports-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sports-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sports-status.live {
    color: #ff7b6b;
    font-weight: 600;
}

.sports-teams {
    display: grid;
    gap: 8px;
}

.sports-team {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.sports-badge {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sports-badge-fallback {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(232, 163, 61, 0.14);
    color: var(--accent-secondary);
    font-size: 0.66rem;
    font-weight: 700;
}

.sports-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.92rem;
}

.sports-score {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
}

.sports-event-title {
    font-weight: 600;
    line-height: 1.3;
}

.sports-card-foot {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player in sports mode: scoreboard + streams instead of the movie controls */
#playerSection.sports-mode #playerActions,
#playerSection.sports-mode > .card-body {
    display: none !important;
}

.sports-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 16px;
}

.sports-bar[hidden] {
    display: none;
}

.sports-bar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    min-width: 0;
}

.sports-live-pill {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 77, 77, 0.14);
    border: 1px solid rgba(255, 77, 77, 0.35);
    color: #ff8a7a;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.sports-bar-matchup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    min-width: 0;
}

.sports-bar-team {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
}

.sports-bar-score {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--accent-secondary);
}

.sports-bar-vs {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sports-streams {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Live video: no seek bar or ±10s skips */
.player-container.is-live .cp-seek,
.player-container.is-live #cpBack10,
.player-container.is-live #cpFwd10 {
    display: none;
}

.player-container.is-live #cpTime {
    color: #ff8a7a;
    font-weight: 700;
}

@media (max-width: 600px) {
    .sports-grid {
        grid-template-columns: 1fr;
    }

    .sports-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sports-filters .history-chip {
        flex: 0 0 auto;
    }

    .sports-bar-team {
        font-size: 0.95rem;
    }
}

/* Six items in the phone nav: let labels shrink instead of overflowing */
.mbn-item {
    min-width: 0;
}

.mbn-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
