:root {
    --m-bg: var(--bg-primary);
    --m-surface: var(--bg-primary);
    --m-surface-2: var(--bg-tertiary);
    --m-border: var(--border-primary);
    --m-border-strong: var(--border-secondary);
    --m-text: var(--text-primary);
    --m-text-soft: var(--text-secondary);
    --m-text-muted: var(--text-muted, var(--text-tertiary));
    --m-accent: var(--color-brand);
    --m-accent-soft: rgba(var(--color-brand-rgb, 220, 38, 38), 0.08);
    --m-live: #16a34a;
    --m-hot: #f59e0b;
    --m-gap: 16px;
    --m-radius: 12px;
    --m-radius-sm: 8px;
    --m-sidebar-w: 256px;
    --m-feed-grid-gap: clamp(13px, 1.35vw, 18px);
    --m-feed-grid-gap-tablet: 10px;
}

[data-theme="dark"] {
    --m-accent-soft: rgba(var(--color-brand-rgb, 239, 68, 68), 0.14);
}

html, body { background-color: var(--m-bg); }

@media (max-width: 1024px) {
    html.has-live-matches {
        overflow-x: visible !important;
        scroll-behavior: auto !important;
    }

    html.has-live-matches body {
        overflow-x: visible !important;
    }

    html.has-live-matches main.main-content > .m-shell {
        max-width: 100%;
        overflow-x: clip;
    }

    @supports not (overflow: clip) {
        html.has-live-matches main.main-content > .m-shell {
            overflow-x: hidden;
        }
    }
}

.m-shell {
    position: relative;
    background-color: var(--m-bg);
    color: var(--m-text);
    padding: 0;
    margin: 0;
}

.m-shell__inner {
    max-width: var(--se-layout-max, 1560px);
    margin: 0 auto;
    padding: 22px 12px 64px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (max-width: 1279px) {
    .m-shell--account .m-shell__inner {
        padding-top: clamp(14px, 2.2vw, 20px);
        padding-bottom: clamp(32px, 5vw, 56px);
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
    }
}

@media (max-width: 1024px) {
    .m-shell__inner {
        padding: 16px 8px 32px;
        gap: 22px;
    }

    .m-shell--home .m-shell__inner,
    .m-shell--categories .m-shell__inner,
    .m-shell--tv-channels .m-shell__inner,
    .m-shell--account .m-shell__inner {
        gap: 0;
    }

    .m-shell--home .m-shell__feed,
    .m-shell--categories .m-shell__feed,
    .m-shell--tv-channels .m-shell__feed,
    .m-shell--account .m-shell__feed {
        gap: clamp(14px, 2.6vw, 20px);
    }

    .m-shell--categories .m-shell__layout {
        gap: 8px;
    }

    .m-shell--categories .m-shell__feed {
        gap: 8px;
    }

    .m-shell--account .m-shell__inner {
        padding-top: 14px;
        padding-bottom: 32px;
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
    }
}

@media (max-width: 640px) {
    .m-shell__inner {
        padding: 12px 6px 28px;
        gap: 20px;
    }

    .m-shell--account .m-shell__inner {
        padding-top: 10px;
        padding-bottom: 28px;
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
    }
}

.m-shell__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.m-shell__feed {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.m-toolbar-banners {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

@media (max-width: 1024px) {
    .m-shell__layout {
        gap: 14px;
    }
}

@media (min-width: 1025px) {
    .m-shell--home .m-shell__layout,
    .m-shell--categories .m-shell__layout {
        align-items: stretch;
    }

    .m-shell__layout {
        display: grid;
        grid-template-columns: var(--m-sidebar-w) minmax(0, 1fr);
        gap: clamp(12px, 1.95vw, 24px);
        align-items: start;
    }

    .m-shell__feed {
        gap: 0;
    }

    .m-shell--feed-banner-open .m-shell__feed > .m-toolbar-banners {
        margin-bottom: clamp(12px, 2vw, 22px);
    }

    .m-sidebar {
        position: sticky;
        top: calc(78px + 22px);
        z-index: 25;
        align-self: start;
        max-height: calc(100vh - 92px - 22px);
        padding: 4px 0;
        padding-inline-end: clamp(12px, 1.65vw, 18px);
        margin: 0;
        border: none;
        border-inline-end: 1px solid var(--m-border);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        gap: 6px;
        overflow-x: visible;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-width: thin;
    }

    .m-sidebar.m-sidebar--split-rail {
        align-self: stretch;
        position: static;
        top: auto;
        z-index: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        overscroll-behavior-y: auto;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
    }

    .m-sidebar.m-sidebar--split-rail,
    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail {
        --m-shell-pad-x: 12px;
        --m-shell-max: var(--se-layout-max, 1560px);
        --m-rail-inner-pad-top: 22px;
        --m-rail-toolbar-stack: 210px;
        --m-rail-sticky-top: calc(78px + var(--m-rail-inner-pad-top));
        --m-rail-panel-max-h: calc(100vh - 92px - var(--m-rail-inner-pad-top));
    }

    .m-sidebar.m-sidebar--split-rail > .m-sidebar__rail,
    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail > .m-sidebar__rail {
        position: fixed;
        top: var(--m-rail-sticky-top);
        left: calc((100vw - min(var(--m-shell-max), 100vw)) / 2 + var(--m-shell-pad-x));
        box-sizing: border-box;
        width: var(--m-sidebar-w);
        height: auto;
        max-height: var(--m-rail-panel-max-h);
        padding: 4px 0 clamp(10px, 1.4vw, 16px);
        padding-inline-end: clamp(12px, 1.65vw, 18px);
        margin: 0;
        border: none;
        border-inline-end: 1px solid var(--m-border);
        border-radius: 0;
        background: transparent;
        z-index: 25;
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 6px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail > .m-sidebar__rail {
        z-index: 60;
        padding-top: 8px;
    }

    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail {
        align-self: stretch;
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
        min-height: 0;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
    }

    .m-sidebar.m-sidebar--split-rail > .m-sidebar__rail > .m-toolbar,
    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail > .m-sidebar__rail > .m-toolbar {
        position: static;
        top: auto;
        flex-shrink: 0;
        z-index: 1;
    }

    .m-sidebar.m-sidebar--split-rail > .m-sidebar__rail > .m-sidebar__desk-scroll {
        flex: 0 1 auto;
        max-height: max(9rem, calc(var(--m-rail-panel-max-h) - var(--m-rail-toolbar-stack)));
        min-height: 0;
        min-width: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--m-border) 80%, transparent) transparent;
    }

    .m-sidebar.m-sidebar--split-rail > .m-sidebar__rail > .m-sidebar__desk-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .m-sidebar.m-sidebar--split-rail > .m-sidebar__rail > .m-sidebar__desk-scroll::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--m-border) 85%, transparent);
        border-radius: 999px;
    }

    .m-sidebar.m-sidebar--split-rail > .m-sidebar__rail > .m-sidebar__desk-scroll .m-cat-band {
        flex: none;
        min-height: 0;
        max-height: none;
        overflow-x: visible;
        overflow-y: visible;
    }

    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail > .m-sidebar__rail > .m-sidebar__tv-scroll {
        flex: 0 1 auto;
        max-height: max(9rem, calc(var(--m-rail-panel-max-h) - 160px));
        min-height: 0;
        min-width: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--m-border) 80%, transparent) transparent;
    }

    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail > .m-sidebar__rail > .m-sidebar__tv-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail > .m-sidebar__rail > .m-sidebar__tv-scroll::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--m-border) 85%, transparent);
        border-radius: 999px;
    }

    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail > .m-sidebar__rail > .m-sidebar__tv-scroll .m-cat-band {
        flex: none;
        min-height: 0;
        max-height: none;
        overflow-x: visible;
        overflow-y: visible;
    }

    .m-sidebar .m-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border: none;
        border-radius: 0;
        background: var(--m-bg);
        box-shadow: none;
        overflow: visible;
        flex-shrink: 0;
        padding: 0 0 6px;
        margin: 0;
        transition: none;
        position: sticky;
        top: 0;
        z-index: 5;
    }

    .m-sidebar .m-toolbar__search {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-bottom: 8px;
        background: transparent;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .m-sidebar .m-toolbar__search-input {
        box-sizing: border-box;
        width: 100%;
        height: 44px;
        border: none;
        border-radius: 999px;
        background-color: color-mix(in srgb, var(--m-text) 6%, transparent);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 14px center;
        background-size: 16px 16px;
        color: var(--m-text);
        min-width: 0;
        font-size: 15px;
        font-weight: 400;
        padding: 0 18px 0 42px;
        border-right: none;
        border-bottom: none;
        outline: none;
        appearance: none;
        -webkit-appearance: none;
    }

    [data-theme="dark"] .m-sidebar .m-toolbar__search-input {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
    }

    .m-sidebar .m-toolbar__search-input::placeholder {
        color: var(--m-text-muted);
    }

    .m-sidebar .m-toolbar__search-input:focus {
        background-color: color-mix(in srgb, var(--m-text) 9%, transparent);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--m-accent) 35%, transparent);
    }

    .m-sidebar .m-toolbar__actions {
        flex-direction: column;
        flex: none;
        gap: 2px;
        align-items: stretch;
    }

    .m-sidebar .m-toolbar__settings {
        display: flex;
        flex-direction: column;
        flex: none;
        align-self: stretch;
        width: 100%;
        min-height: 0;
        gap: 2px;
    }

    .m-sidebar .m-toolbar__action {
        appearance: none;
        -webkit-appearance: none;
        flex: none;
        width: 100%;
        min-height: 48px;
        height: auto;
        justify-content: flex-start;
        padding: 11px 16px;
        margin: 0;
        border: none;
        border-radius: 999px;
        gap: 16px;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: -0.01em;
        text-decoration: none;
        box-shadow: none;
        color: var(--m-text-soft);
        background: transparent;
        outline: none;
        cursor: pointer;
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.12s ease;
    }

    .m-sidebar .m-toolbar__action:focus,
    .m-sidebar .m-toolbar__action:focus-visible,
    .m-sidebar .m-toolbar__action:active {
        outline: none;
        box-shadow: none;
    }

    .m-sidebar .m-toolbar__action::after,
    .m-sidebar .m-toolbar__search-face::after {
        content: none;
        display: none;
    }

    .m-sidebar .m-toolbar__row {
        flex: 1;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
    }

    .m-sidebar .m-toolbar__row .m-toolbar__ttl {
        min-width: 0;
        text-align: start;
        justify-self: start;
        align-self: center;
    }

    .m-sidebar .m-toolbar__row .m-hud-nums {
        justify-self: end;
        align-self: center;
        width: max-content;
        max-width: 100%;
        justify-content: flex-start;
        gap: 11px;
        box-sizing: border-box;
    }

    .m-sidebar .m-toolbar__ttl {
        flex: 1;
        min-width: 0;
        text-align: start;
        text-decoration: none;
        border-bottom: none;
    }

    .m-sidebar .m-toolbar__action > .m-toolbar__ttl {
        flex: 1;
        min-width: 0;
        text-align: start;
    }

    .m-sidebar .m-toolbar__action i {
        flex-shrink: 0;
        width: 26px;
        height: auto;
        text-align: center;
        font-size: 22px;
        line-height: 1;
        color: currentColor;
    }

    .m-sidebar .m-toolbar__settings > .m-toolbar__action {
        width: 100%;
        border: none;
    }

    .m-sidebar .m-toolbar__action--active,
    .m-sidebar .m-toolbar__action[aria-expanded="true"] {
        background: transparent;
        color: var(--m-accent);
        font-weight: 700;
    }

    .m-sidebar .m-toolbar__action[aria-expanded="true"] .m-hud-soon {
        color: var(--m-text-soft);
        background: color-mix(in srgb, var(--m-text-muted) 14%, var(--m-surface-2));
    }

    .m-sidebar .m-toolbar__action--active .m-toolbar__ttl,
    .m-sidebar .m-toolbar__action[aria-expanded="true"] .m-toolbar__ttl {
        font-weight: 700;
    }

    @media (hover: hover) {
        .m-sidebar .m-toolbar__action:hover {
            background: transparent;
            color: var(--m-text);
        }

        .m-sidebar .m-toolbar__action--active:hover,
        .m-sidebar .m-toolbar__action[aria-expanded="true"]:hover {
            color: var(--m-accent);
        }
    }

    .m-sidebar .m-cat-band {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: visible;
        overflow-y: visible;
        border: 0;
        padding: 4px 0 0;
        margin: 8px 0 0;
        gap: 2px;
        background: transparent;
        border-block-start: 1px solid color-mix(in srgb, var(--m-border) 65%, transparent);
        padding-inline-start: 2px;
    }

    .m-sidebar .m-cat-band__item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        column-gap: 13px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 16px;
        border-radius: 999px;
        border: none;
        background: transparent;
        font-size: 17px;
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: -0.01em;
        text-align: left;
        color: var(--m-text-soft);
        text-decoration: none;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        font-family: inherit;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.12s ease;
    }

    .m-sidebar .m-cat-band__item:focus,
    .m-sidebar .m-cat-band__item:focus-visible,
    .m-sidebar .m-cat-band__item:active {
        outline: none;
        box-shadow: none;
    }

    .m-sidebar .m-cat-band__item::after {
        display: none !important;
    }

    .m-sidebar .m-cat-band__item--current {
        background: transparent;
        font-weight: 700;
        color: var(--m-accent);
        box-shadow: none;
    }

    .m-sidebar .m-cat-band__item--current .m-cat-band__icon {
        color: currentColor;
        opacity: 1;
    }

    .m-sidebar .m-cat-band__icon {
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: currentColor;
        opacity: 1;
    }

    .m-sidebar .m-cat-band__icon img,
    .m-sidebar .m-cat-band__icon svg {
        width: 22px;
        height: 22px;
        object-fit: contain;
        display: block;
    }

    .m-sidebar .m-cat-band__icon i {
        width: auto;
        height: auto;
        font-size: 21px;
        line-height: 1;
        display: block;
    }

    .m-sidebar .m-cat-band__label {
        flex: 1;
        min-width: 0;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-decoration: none;
        border: none;
    }

    .m-sidebar .m-cat-band__item .m-hud-nums {
        margin-inline-start: auto;
        flex-shrink: 0;
        width: max-content;
        justify-content: flex-start;
        gap: 11px;
    }

    .m-sidebar .m-toolbar__row .m-hud-nums,
    .m-sidebar .m-cat-band__item .m-hud-nums {
        transform: translateX(3px);
    }

    .m-sidebar .m-cat-band__item .m-hud-soon {
        color: var(--m-text-soft);
        background: color-mix(in srgb, var(--m-text-muted) 12%, var(--m-surface-2));
        font-weight: 700;
    }

    .m-sidebar .m-cat-band__item--current .m-hud-soon {
        color: var(--m-text-soft);
        background: color-mix(in srgb, var(--m-text-muted) 14%, var(--m-surface-2));
    }

    @media (hover: hover) {
        .m-sidebar .m-cat-band__item:hover:not(.m-cat-band__item--current) {
            background: transparent;
            color: var(--m-text);
        }

        .m-sidebar .m-cat-band__item--current:hover {
            color: var(--m-accent);
        }
    }

    .m-sidebar .m-cat-band__item--channels {
        flex-shrink: 0;
        margin-top: auto;
        padding-block-start: 4px;
        border: none;
        box-shadow: none;
    }

    .m-sidebar .m-cat-band__item--channels:focus,
    .m-sidebar .m-cat-band__item--channels:focus-visible,
    .m-sidebar .m-cat-band__item--channels:active {
        outline: none;
        box-shadow: none;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .m-sidebar.m-sidebar--split-rail,
    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail {
        --m-rail-sticky-top: calc(62px + var(--m-rail-inner-pad-top));
        --m-rail-panel-max-h: calc(100vh - 62px - 14px - var(--m-rail-inner-pad-top));
    }

    .m-sidebar {
        top: calc(62px + 22px);
        max-height: calc(100vh - 62px - 14px - 22px);
    }
}

@media (min-width: 1367px) {
    .m-sidebar.m-sidebar--split-rail,
    .m-shell--tv-channels .m-sidebar.m-sidebar--tv-rail {
        --m-rail-sticky-top: calc(52px + 70px + 1px + var(--m-rail-inner-pad-top));
        --m-rail-panel-max-h: calc(100vh - 52px - 70px - 1px - 14px - var(--m-rail-inner-pad-top));
    }

    .m-sidebar {
        top: calc(52px + 70px + 1px + 22px);
        max-height: calc(100vh - 52px - 70px - 1px - 14px - 22px);
    }
}

.m-toolbar {
    position: relative;
    background: var(--m-surface);
    border: 1.5px solid var(--m-border);
    border-radius: 22px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow: hidden;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.m-toolbar__search {
    position: relative;
    flex: 0 1 35%;
    min-width: min(100%, 12rem);
    max-width: 22rem;
    display: flex;
    align-items: stretch;
}

.m-toolbar__search-input {
    width: 100%;
    height: 50px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px 16px;
    border: 0;
    border-right: 1px solid var(--m-border);
    color: var(--m-text);
    border-radius: 0;
    padding: 0 14px 0 40px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    outline: none;
}

[data-theme="dark"] .m-toolbar__search-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
}

.m-toolbar__search-input::placeholder {
    color: var(--m-text-muted);
    font-weight: 400;
}

.m-toolbar__search-input:focus {
    background-color: color-mix(in srgb, var(--m-accent) 4%, transparent);
}

.m-hud-nums {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.m-toolbar__row .m-hud-nums {
    margin-inline-start: clamp(6px, 1vw, 11px);
}

@media (max-width: 1024px) {
    .m-toolbar .m-toolbar__action > .m-toolbar__row .m-hud-nums {
        margin-inline-start: 0;
    }
}

#modern-favorites-btn .m-hud-nums {
    gap: 9px;
}

#modern-favorites-btn .m-hud-live {
    margin-inline-start: 2px;
}

.m-hud-live {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 2.35rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: #ff2d4f;
    color: #fff;
    font-size: 0.82em;
    font-weight: 800;
    line-height: 1.1;
}

.m-hud-live[hidden] {
    display: none !important;
}

.m-hud-soon {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 2.35rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--m-text-muted) 14%, var(--m-surface-2));
    color: var(--m-text-soft);
    font-size: 0.82em;
    font-weight: 800;
    line-height: 1.1;
}

.m-hud-soon[hidden] {
    display: none !important;
}

.m-hud-tot {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--m-text-soft);
}

.m-toolbar__actions {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 0;
    flex-wrap: nowrap;
}

.m-toolbar__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    height: 50px;
    padding: 0 18px;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--m-border);
    color: var(--m-text-soft);
    border-radius: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.m-toolbar__action:last-child,
.m-toolbar__settings:last-child .m-toolbar__action { border-right: 0; }

.m-toolbar__settings {
    display: flex;
    align-items: stretch;
    position: relative;
    flex: 1;
}
.m-toolbar__settings > .m-toolbar__action { flex: 1; width: 100%; }

.m-toolbar__action i { font-size: 16px; }

@media (hover: hover) {
    .m-toolbar__action:hover {
        color: var(--m-text);
        background: color-mix(in srgb, var(--m-text) 4%, transparent);
    }
}

.m-toolbar__action--active,
.m-toolbar__action[aria-expanded="true"] {
    color: var(--m-accent);
    background: transparent;
}

.m-toolbar__action--active .m-hud-soon,
.m-toolbar__action[aria-expanded="true"] .m-hud-soon {
    color: var(--m-text-soft);
    background: color-mix(in srgb, var(--m-text-muted) 14%, var(--m-surface-2));
}

.m-settings {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 232px;
    max-width: min(92vw, 288px);
    background: transparent;
    border: 0;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 10px rgba(0, 0, 0, 0.06);
    z-index: 10050;
    --m-settings-caret-x: 50%;
}

.m-settings__inner {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: 14px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.m-settings__caret {
    position: absolute;
    left: var(--m-settings-caret-x);
    width: 11px;
    height: 11px;
    z-index: 2;
    pointer-events: none;
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    transform: translateX(-50%) rotate(45deg);
}

.m-settings[data-m-settings-placement="below"] .m-settings__caret {
    top: -6px;
    border-bottom: none;
    border-right: none;
}

.m-settings[data-m-settings-placement="above"] .m-settings__caret {
    bottom: -6px;
    border-top: none;
    border-left: none;
}

.m-settings[hidden] { display: none; }

.m-settings__item {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 12px;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--m-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.m-settings__label {
    min-width: 0;
    line-height: 1.35;
}

.m-settings__check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 11px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--m-text-muted) 10%, transparent);
}

.m-settings__item[aria-checked="true"] .m-settings__check {
    color: #fff;
    background: var(--m-accent);
}

.m-settings__item[hidden] { display: none; }

.m-settings__state {
    color: var(--m-text-muted);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 2.4rem;
    text-align: right;
}

@media (hover: hover) {
    .m-settings__item:hover {
        background: color-mix(in srgb, var(--m-text-muted) 8%, transparent);
    }
}

.m-section {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.m-section[hidden] { display: none; }

.m-section__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 14px;
}

@media (min-width: 1025px) {
    #ort-matches-wrap > .m-section.m-section--lead .m-section__head {
        padding-top: 4px;
    }

    .m-shell--feed-banner-open #ort-matches-wrap > .m-section.m-section--lead .m-section__head {
        padding-top: 18px;
    }
}

.m-section__title {
    position: relative;
    flex: 1;
    margin: 0;
    padding-bottom: 0;
}

.m-section__title::after {
    content: "";
    display: block;
    margin-top: 12px;
    height: 3px;
    width: 64px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--m-accent) 0%, var(--m-accent) 60%, transparent 100%);
}

.m-section__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--m-accent-soft), rgba(245, 158, 11, 0.06));
    border: 1px solid var(--m-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--m-accent);
    font-size: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.m-section__icon img,
.m-section__icon svg {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.m-section__icon i { font-size: inherit; line-height: 1; }

.m-section__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--m-text);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.m-section__divider {
    height: 1px;
    background: var(--m-border);
}

.m-section--alert .m-section__head { padding-bottom: 4px; }

.m-section__alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--m-accent-soft);
    color: var(--m-accent);
    border-radius: var(--m-radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.m-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--m-feed-grid-gap-tablet);
}

@media (min-width: 1580px) {
    .m-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--m-feed-grid-gap);
    }
}

@media (max-width: 640px) {
    .m-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

.m-empty {
    box-sizing: border-box;
    width: 100%;
    max-width: 26rem;
    margin: 8px auto 4px;
    padding: 32px 18px 36px;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.m-empty[hidden] { display: none; }

#m-filter-empty {
    scroll-margin-top: clamp(76px, 12vh, 120px);
}

.m-empty__icon {
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--m-accent-soft), rgba(245, 158, 11, 0.06));
    color: var(--m-accent);
    font-size: 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.m-empty__title {
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--m-text);
}

.m-empty__title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--m-accent) 0%, var(--m-accent) 60%, transparent 100%);
}

.m-empty__desc {
    margin: 0;
    max-width: 38ch;
    font-size: 0.90625rem;
    line-height: 1.55;
    color: var(--m-text-muted);
}

.m-empty__btn {
    margin: 6px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--m-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) {
    .m-empty__btn:hover {
        filter: brightness(1.08);
    }
}

.m-empty__btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--m-accent) 50%, transparent);
    outline-offset: 3px;
}

.m-empty__btn:active {
    transform: scale(0.98);
}

.m-context-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--m-accent-soft);
    border: 1px solid var(--m-accent);
    border-radius: var(--m-radius-sm);
    color: var(--m-accent);
    font-size: 13px;
}

.m-context-banner[hidden] { display: none; }

.m-context-banner__txt { flex: 1; }
.m-context-banner__lead { font-weight: 600; }
.m-context-banner__q { margin-left: 4px; font-weight: 400; }

.m-context-banner__clear {
    background: var(--m-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.m-channels-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
}

.m-channels-panel[hidden] { display: none; }

.m-channels-panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-channels-panel__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--m-surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--m-accent);
}

.m-channels-panel__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--m-text); }

.m-channels-panel__desc { margin: 0; font-size: 13px; color: var(--m-text-muted); }

.m-channels-panel__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--m-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.m-load-more,
.m-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 28px auto 0;
    padding: 12px 24px;
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: 999px;
    color: var(--m-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

@media (hover: hover) {
    .m-load-more:hover,
    .m-show-more:hover {
        background: var(--m-surface-2);
        border-color: var(--m-border-strong);
    }
}

@media (min-width: 1025px) {
    .m-mob-stack,
    .m-mob-cat-scrim { display: none !important; }
}

.m-mob-topbar__cat {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px 6px 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.m-mob-topbar__cat-ic {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    opacity: 0.98;
}

.m-mob-topbar__cat-ic img,
.m-mob-topbar__cat-ic svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.m-mob-topbar__cat-txt {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(28vw, 150px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-mob-topbar__cat-caret {
    flex-shrink: 0;
    margin-inline-start: 2px;
    font-size: 14px;
    opacity: 0.95;
}

.m-mob-topbar__cat-caret i {
    display: block;
    line-height: 1;
    transition: transform 0.2s ease;
}

.m-mob-topbar--cat-open .m-mob-topbar__cat-caret i {
    transform: rotate(180deg);
}

.m-mob-topbar__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-mob-topbar__icon-btn {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.m-mob-topbar__icon-btn.m-mob-topbar__icon-btn--prefs {
    font-size: 21px;
}

.m-mob-topbar__icon-btn.m-mob-topbar__icon-btn--fav i {
    font-size: 20px;
}

.m-shell--home .m-mob-topbar__icon-btn--fav-count,
.m-shell--categories .m-mob-topbar__icon-btn--fav-count {
    position: relative;
}

.m-shell--home .m-mob-fav-count,
.m-shell--categories .m-mob-fav-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    color: #fff;
    background: var(--m-color-accent-live, #e63946);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}

.m-shell--home .m-mob-fav-count:not([hidden]),
.m-shell--categories .m-mob-fav-count:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.m-mob-cat-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
}

.m-mob-cat-scrim[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.m-mob-cat-scrim:not([hidden]) {
    display: block;
    z-index: 1500;
    pointer-events: auto;
}

#m-mob-cat-panel[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

#m-mob-cat-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 4;
    max-height: min(72vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--m-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--m-border) 65%, transparent);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    padding: 4px 8px 10px;
    box-sizing: border-box;
}

#m-mob-cat-panel .m-cat-band {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 4px 0 0;
    border: 0;
    border-block-start: 1px solid color-mix(in srgb, var(--m-border) 65%, transparent);
    padding-inline-start: 2px;
    overflow: visible;
    background: transparent;
}

#m-mob-cat-panel .m-cat-band__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    column-gap: 13px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--m-text-soft);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    text-decoration: none;
    transition: color 0.12s ease;
}

#m-mob-cat-panel .m-cat-band__item::after {
    display: none !important;
    content: none !important;
}

#m-mob-cat-panel .m-cat-band__item:focus,
#m-mob-cat-panel .m-cat-band__item:focus-visible,
#m-mob-cat-panel .m-cat-band__item:active {
    outline: none;
    box-shadow: none;
}

#m-mob-cat-panel .m-cat-band__item--current {
    background: transparent;
    font-weight: 700;
    color: var(--m-accent);
    box-shadow: none;
}

#m-mob-cat-panel .m-cat-band__item--current .m-cat-band__icon {
    color: currentColor;
    opacity: 1;
}

#m-mob-cat-panel .m-cat-band__icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: currentColor;
    opacity: 1;
}

#m-mob-cat-panel .m-cat-band__icon img,
#m-mob-cat-panel .m-cat-band__icon svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

#m-mob-cat-panel .m-cat-band__icon i {
    width: auto;
    height: auto;
    font-size: 21px;
    line-height: 1;
    display: block;
}

#m-mob-cat-panel .m-cat-band__label {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#m-mob-cat-panel .m-cat-band__item .m-hud-nums {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    margin-inline-start: auto;
    flex-shrink: 0;
    width: max-content;
    justify-content: flex-start;
    gap: 11px;
    transform: translateX(3px);
}

#m-mob-cat-panel .m-cat-band__item .m-hud-soon {
    color: var(--m-text-soft);
    background: color-mix(in srgb, var(--m-text-muted) 12%, var(--m-surface-2));
    font-weight: 700;
}

#m-mob-cat-panel .m-cat-band__item--current .m-hud-soon {
    color: var(--m-text-soft);
    background: color-mix(in srgb, var(--m-text-muted) 14%, var(--m-surface-2));
}

@media (hover: hover) {
    #m-mob-cat-panel .m-cat-band__item:hover:not(.m-cat-band__item--current) {
        background: transparent;
        color: var(--m-text);
    }

    #m-mob-cat-panel .m-cat-band__item--current:hover {
        color: var(--m-accent);
    }
}

.m-toolbar .m-toolbar__search-face,
.m-toolbar .m-toolbar__search-collapse { display: none; }

@media (max-width: 1024px) {
    html.has-live-matches #m-mob-stack,
    html.has-live-matches #m-mob-cat-scrim {
        opacity: 0;
        transition: opacity 0.12s ease;
        pointer-events: none;
    }

    html.has-live-matches header.se-chrome ~ #m-mob-stack,
    html.has-live-matches header.se-chrome ~ #m-mob-cat-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .m-mob-stack {
        display: block;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1650;
        width: 100%;
        overflow: visible;
        pointer-events: auto;
    }

    .m-mob-stack.m-mob-stack--cat-open {
        z-index: 2100;
    }

    #ort-matches-wrap {
        overflow-anchor: none;
    }

    .m-sidebar {
        display: none !important;
    }

    .m-mob-topbar {
        display: flex;
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: 100%;
        min-height: 52px;
        padding: 8px 10px 8px 12px;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        background: #001f24;
        color: #fff;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .m-mob-topbar__main {
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 1;
        gap: 5px;
    }

    .m-mob-topbar__sep {
        flex-shrink: 0;
        width: 1px;
        height: 26px;
        align-self: center;
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.38) 20%, rgba(255, 255, 255, 0.38) 80%, transparent);
        opacity: 0.9;
    }

    .m-mob-topbar__filters {
        display: flex;
        align-items: center;
        gap: 2px;
        min-width: 0;
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 0 0 8px;
    }

    .m-mob-topbar__filters::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .m-mob-topbar__filter {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        min-height: 44px;
        padding: 0 10px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #fff;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        white-space: nowrap;
    }

    .m-mob-topbar__filter i {
        font-size: 15px;
        color: inherit;
    }

    .m-mob-topbar__actions {
        gap: 6px;
    }

    .m-mob-topbar__filter--active {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }

    .m-mob-topbar__icon-btn.m-mob-topbar__filter--active {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }

    @media (hover: hover) {
        .m-mob-topbar__filter:hover:not(.m-mob-topbar__filter--active) {
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
        }
    }

    #m-toolbar.m-toolbar--mob-detach {
        display: none;
    }

    #m-toolbar.m-toolbar--mob-detach.is-search-expanded {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 700;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: color-mix(in srgb, var(--m-bg) 88%, #000);
        backdrop-filter: blur(10px);
        border: 0;
        border-radius: 0;
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
        margin: 0;
        overflow: hidden;
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.18s ease, visibility 0.18s ease;
    }

    #m-toolbar.m-toolbar--mob-detach .m-toolbar__actions {
        display: none !important;
    }

    #m-toolbar.m-toolbar--mob-detach .m-toolbar__search {
        flex: 1 1 auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        width: 100%;
        position: relative;
        padding: 10px 14px 12px;
        box-sizing: border-box;
    }

    #m-toolbar.m-toolbar--mob-detach.is-search-expanded .m-toolbar__search::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        right: calc(14px + 48px + 6px - 5px);
        top: calc(10px + 26px - 5px);
        background: var(--m-surface);
        border-right: 1px solid var(--m-border);
        border-top: 1px solid var(--m-border);
        transform: rotate(45deg);
        z-index: 4;
        pointer-events: none;
        box-sizing: border-box;
    }

    [data-theme="dark"] #m-toolbar.m-toolbar--mob-detach.is-search-expanded .m-toolbar__search::after {
        border-right-color: rgba(255, 255, 255, 0.38);
        border-top-color: rgba(255, 255, 255, 0.38);
    }

    #m-toolbar.m-toolbar--mob-detach .m-toolbar__search-face {
        display: none !important;
    }

    #m-toolbar.m-toolbar--mob-detach .m-toolbar__search-input {
        position: relative;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 52px;
        opacity: 1;
        pointer-events: auto;
        border-radius: 14px;
        border: 1px solid var(--m-border);
        background-color: var(--m-surface);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 16px center;
        background-size: 18px 18px;
        color: var(--m-text);
        padding: 0 16px 0 44px;
        font-size: 16px;
        box-sizing: border-box;
    }

    [data-theme="dark"] #m-toolbar.m-toolbar--mob-detach .m-toolbar__search-input {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
    }

    #m-toolbar.m-toolbar--mob-detach .m-toolbar__search-collapse {
        display: inline-flex !important;
        position: static;
        flex: 0 0 auto;
        width: 48px;
        height: 52px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--m-border);
        border-radius: 14px;
        background: var(--m-surface);
        color: var(--m-text-muted);
        font-size: 18px;
        cursor: pointer;
        box-sizing: border-box;
    }

    .m-shell--home .m-shell__inner,
    .m-shell--categories .m-shell__inner,
    .m-shell--tv-channels .m-shell__inner,
    .m-shell--account .m-shell__inner {
        padding-top: clamp(12px, 2vw, 18px);
    }

    .m-shell--home #ort-matches-wrap,
    .m-shell--categories #ort-matches-wrap,
    .m-shell--tv-channels #ort-matches-wrap {
        margin-top: 0;
        padding-bottom: clamp(136px, 32vw, 260px);
    }

    .m-shell--home #ort-matches-wrap > .m-section.m-section--lead .m-section__head,
    .m-shell--categories #ort-matches-wrap > .m-section.m-section--lead .m-section__head,
    .m-shell--tv-channels #ort-matches-wrap > .m-section.m-section--lead .m-section__head {
        padding-top: 0;
        padding-bottom: 6px;
    }

    .m-shell--home #ort-matches-wrap > .m-section.m-section--lead .m-section__title::after,
    .m-shell--categories #ort-matches-wrap > .m-section.m-section--lead .m-section__title::after,
    .m-shell--tv-channels #ort-matches-wrap > .m-section.m-section--lead .m-section__title::after {
        margin-top: 8px;
    }
}

.m-card {
    --m-card-home: #5f7390;
    --m-card-away: #455566;
    --m-card-h: 104px;
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: var(--m-card-h);
    padding: 0;
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: 18px;
    color: var(--m-text);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
}

.m-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
}

.m-card__link:focus-visible {
    outline: 2px solid var(--m-accent, #60a5fa);
    outline-offset: -3px;
}

.m-card:not(.m-card--live) {
    border: none;
}

#ort-matches-wrap .m-card:not(.m-card--live) {
    border: 0 !important;
    outline: none;
    box-shadow: none;
}

.m-card--brand {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--m-card-home) 0%, var(--m-card-home) 50%, var(--m-card-away) 50%, var(--m-card-away) 100%);
}

.m-card--brand.m-card--event {
    background: color-mix(in srgb, var(--m-card-home) 50%, var(--m-card-away));
}

.m-card__head { position: relative; }
.m-card__body { position: relative; }

.m-card--hitlayer .m-card__head {
    pointer-events: none;
    z-index: 3;
}

.m-card--hitlayer .m-card__body {
    pointer-events: none;
    z-index: 2;
}

.m-card--brand .m-card__name,
.m-card--brand .m-card__title,
.m-card--brand .m-card__time-day,
.m-card--brand .m-card__time-hour,
.m-card--brand .m-card__cat,
.m-card--brand .m-card__status,
.m-card--brand .m-card__score { color: #fff; }

.m-card--brand .m-card__name {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-shadow: var(--shadow-chip-glow-live, 0 0 2px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.65));
}

.m-card--brand .m-card__score {
    font-size: 20px;
    font-weight: 900;
    background: transparent;
    color: #fff;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 0 6px rgba(0,0,0,0.35);
}

.m-card__mark {
    position: absolute;
    top: 25%;
    width: 72%;
    max-width: 100px;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    filter: grayscale(0.2);
    pointer-events: none;
    z-index: 1;
}

.m-card:not([data-mark-loaded="1"]) .m-card__mark {
    background-image: none !important;
}

.m-card__mark--home { left: 25%; transform: translate(calc(-50% - 50px), -50%); background-image: var(--m-mark-home); }
.m-card__mark--away { left: 75%; transform: translate(calc(-50% + 50px), -50%); background-image: var(--m-mark-away); }

@media (max-width: 415px) {
    .m-card__mark--home { transform: translate(calc(-50% - 44px), -50%); }
    .m-card__mark--away { transform: translate(calc(-50% + 44px), -50%); }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .m-card__mark--home {
        left: 26%;
        transform: translate(calc(-50% - 34px), -50%);
    }
    .m-card__mark--away {
        left: 74%;
        transform: translate(calc(-50% + 34px), -50%);
    }
}

.m-card--folded { display: none; }

@media (hover: hover) {
    .m-card:not(.m-card--brand):not(.m-card--live):hover {
        border: none;
        background: var(--m-surface-2);
    }
    .m-card:not(.m-card--brand).m-card--live:hover {
        border-color: var(--m-border-strong);
        background: var(--m-surface-2);
    }
    .m-card--brand:hover { filter: brightness(1.06); }
    .m-card--brand:hover .m-card__mark { opacity: 0.14; }
}

.m-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 0;
    margin-bottom: 2px;
    min-height: 0;
}

.m-card__head-left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.m-card__head-right { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; max-width: 56%; min-width: 0; }

.m-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.m-card__pill--live .m-card__pill-label + .m-card__pill-status {
    margin-left: -1px;
}

.m-card:not(.m-card--brand) .m-card__pill {
    background: var(--m-surface-2);
    color: var(--m-text-soft);
}

.m-card__pill--live {
    background: var(--m-accent);
    color: #fff;
}

.m-card--brand .m-card__pill--live { background: rgba(255, 59, 92, 0.95); }

.m-card__pill--time {
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    border: none;
}

.m-card--brand .m-card__pill--time {
    background: rgba(0, 0, 0, 0.58);
    border: none;
}

.m-card__pill--time:has(.status-upcoming, .starting-soon),
.m-card__pill--live:has(.status-upcoming, .starting-soon) {
    background: #1e3a8a;
    color: #f1f5f9;
}

.m-card__pill--final {
    background: #0a0a0b;
    color: #f1f5f9;
    border: none;
}

.m-card--brand .m-card__pill--final {
    background: #0a0a0b;
    color: #f1f5f9;
}

.m-card__pill--final .m-card__pill-end {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.uefa-card-split__top-pill--ended {
    background: #0a0a0b !important;
    color: #f1f5f9 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.uefa-card-split__top-pill--ended .uefa-card-split__end-label,
.uefa-card-split__top-pill--ended .uefa-time {
    color: inherit !important;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    border: none;
    padding: 0;
    margin: 0;
}

.uefa-card-split__top-pill--meta:not(.uefa-card-split__top-pill--ended):is(:has(.status-upcoming), :has(.starting-soon)),
.uefa-card-split__top-pill--live:is(:has(.status-upcoming), :has(.starting-soon)) {
    background: #1e3a8a !important;
    color: #f1f5f9 !important;
}

.uefa-card-split__top-pill--meta:not(.uefa-card-split__top-pill--ended):is(:has(.status-upcoming), :has(.starting-soon))
    :is(.uefa-time, .uefa-espn-status, .match-live-espn, .starting-soon),
.uefa-card-split__top-pill--live:is(:has(.status-upcoming), :has(.starting-soon))
    :is(.uefa-time, .uefa-espn-status, .match-live-espn, .starting-soon) {
    color: inherit !important;
    text-shadow: none !important;
}

.m-card__pill-label { font-weight: 700; }

.m-card__pill-status {
    display: inline-flex;
    align-items: center;
    padding-left: 6px;
    margin-left: 0;
    border-left: 1px solid rgba(255,255,255,0.3);
    font-weight: 700;
}

.m-card__pill-status .uefa-time,
.m-card__pill-status .uefa-day,
.m-card__pill-status .uefa-hour,
.m-card__pill-status .uefa-dsep { font: inherit; color: inherit; }

.m-card__time {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.m-card__time-day { opacity: 0.85; }
.m-card__time-day:empty { display: none; }
.m-card__time-hour { font-weight: 800; }

.m-card__hot-pin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--m-hot);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.22);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.m-card__hot-pin i { font-size: 12px; }

.m-card__hot-pin-label { font-weight: 700; }

.m-card__hot-pin-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    margin-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 800;
}

@media (max-width: 540px) {
    .m-card__hot-pin-label { display: none; }
    html:not(.m-match-row-scroll) .m-card__hot-pin { gap: 4px; padding: 2px 6px; }
}

.m-card__fav {
    position: relative;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.m-card__fav i { font-size: 14px; }

.m-card:not(.m-card--brand) .m-card__fav {
    color: var(--m-text);
    text-shadow: none;
}

.m-card__fav.is-fav,
.m-card__fav[aria-pressed="true"] {
    color: #f5b400;
    opacity: 1;
}
.m-card__fav.is-fav i,
.m-card__fav[aria-pressed="true"] i { font-weight: 900; }

@media (hover: hover) {
    .m-card__fav:hover { color: #f5b400; }
}

.m-card__body {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 8px;
    min-height: 68px;
}

.m-card__body--event { grid-template-columns: auto 1fr; gap: 10px; padding: 0 16px 12px; }

.m-card__team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 6px;
    row-gap: 6px;
    min-width: 0;
    align-items: start;
}

.m-card__team--home {
    grid-template-areas:
        "star logo score"
        "name name name";
}

.m-card__team--away {
    grid-template-areas:
        "score logo star"
        "name name name";
}

.m-card__team .m-card__fav   { grid-area: star;  align-self: start; height: 36px; min-width: 1.35em; padding: 0 2px; width: auto; border-radius: 0; }
.m-card__team .m-card__crest { grid-area: logo;  justify-self: center; align-self: start; }
.m-card__team .m-card__score { grid-area: score; align-self: start; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }

.m-card__team--home .m-card__fav   { justify-self: end; }
.m-card__team--home .m-card__score { justify-self: start; margin-left: 28px; }
.m-card__team--away .m-card__fav   { justify-self: start; }
.m-card__team--away .m-card__score { justify-self: end; margin-right: 28px; }

.m-card__team .m-card__name {
    grid-area: name;
    text-align: center;
    width: 100%;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

@media (max-width: 540px) {
    .m-card__team { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); }
    .m-card__team .m-card__fav { height: 32px; }
    .m-card__team .m-card__score { min-height: 32px; }
    .m-card__team--home .m-card__score { margin-left: 6px; }
    .m-card__team--away .m-card__score { margin-right: 6px; }
    .m-card--brand .m-card__score { font-size: 18px; }
    .m-card__head-right { max-width: min(56%, 11rem); }
    .m-card__pill--live .m-card__pill-label + .m-card__pill-status {
        padding-left: 4px;
    }
    html:not(.m-match-row-scroll) .m-card__team--home .m-card__score {
        justify-self: end;
        margin-left: 22px;
        margin-right: 22px;
    }
    html:not(.m-match-row-scroll) .m-card__team--away .m-card__score {
        justify-self: start;
        margin-left: 22px;
        margin-right: 22px;
    }
}


.m-card__crest {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
}

.m-card__crest-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 540px) {
    .m-card__crest { width: 32px; height: 32px; }
}

.m-card__crest--fa {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    border-radius: 8px;
    font-size: 14px;
}

.m-card:not(.m-card--brand) .m-card__crest--fa {
    background: var(--m-surface-2);
    color: var(--m-accent);
}

.m-card__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.m-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.m-card__score {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    min-width: 24px;
    text-align: center;
}

.m-card:not(.m-card--brand) .m-card__score { background: var(--m-surface-2); }

[data-m-no-scores] .m-card__score { display: none; }

.m-card__foot {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.78;
    min-height: 14px;
}

.m-card__cat {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

.m-card__status {
    flex-shrink: 0;
    font-weight: 600;
}

.m-card__status--final { color: var(--m-text-muted); }
.m-card__status--live { color: var(--m-accent); }

.m-card__privacy-eye {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.55;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (hover: hover) {
    .m-card__privacy-eye:hover { opacity: 1; }
}

[data-m-no-scores] .m-card__privacy-eye .m-card__privacy-eye-on { display: none; }
.m-card__privacy-eye .m-card__privacy-eye-off { display: none; }
[data-m-no-scores] .m-card__privacy-eye .m-card__privacy-eye-off { display: inline; }

[data-m-flat-logos] .m-card__mark {
    opacity: 0 !important;
    visibility: hidden;
}

[data-m-flat-logos] .m-card--brand .m-card__crest-img,
[data-m-flat-logos] .m-card__crest-img {
    filter: none !important;
    -webkit-filter: none !important;
}

[data-theme="dark"] .m-card {
    --m-card-home: #334d6c;
    --m-card-away: #3f5c7a;
}

@media (max-width: 1024px) {
    .m-card--brand {
        border-color: var(--m-border);
    }
}

.m-card__status .uefa-time,
.m-card__status .uefa-day,
.m-card__status .uefa-hour,
.m-card__status .uefa-dsep,
.m-card__status .uefa-espn-status {
    display: inline;
    font: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    line-height: inherit;
}

.m-card__status .uefa-day { opacity: 0.8; margin-right: 3px; }
.m-card__status .uefa-espn-status.status-live { color: var(--m-accent); }
.m-card__status .uefa-espn-status.status-final { opacity: 0.7; }
.m-card__status .uefa-time--soon { color: var(--m-hot); font-weight: 700; }
