/* MXPLEX Today's Update: compact homepage trigger and branded slide-out panel. */
html body.home nav.mx-homepage-buttons .mx-homepage-buttons-inner > .mx-homepage-button--today {
    gap: 8px !important;
    color: #fff !important;
    background: linear-gradient(110deg, #0588FF 0%, #5362EA 52%, #7A3FE0 100%) !important;
    border-color: rgba(126, 119, 255, .58) !important;
    cursor: pointer;
    font: inherit;
    font-size: 13px !important;
    font-weight: 800 !important;
}
html body.home nav.mx-homepage-buttons .mx-homepage-buttons-inner > .mx-homepage-button--today i {
    color: #fff !important;
    font-size: 15px;
    line-height: 1;
}
html body.home nav.mx-homepage-buttons .mx-homepage-buttons-inner > .mx-homepage-button--today:hover,
html body.home nav.mx-homepage-buttons .mx-homepage-buttons-inner > .mx-homepage-button--today:focus-visible {
    color: #fff !important;
    filter: brightness(1.1);
}
html body.home nav.mx-homepage-buttons .mx-homepage-buttons-inner > .mx-homepage-button--today:focus-visible {
    outline: 2px solid rgba(154, 190, 255, .95);
    outline-offset: 3px;
}
html body.home nav.mx-homepage-buttons .mx-homepage-buttons-inner > .mx-homepage-button--today:only-child {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mx-today-overlay[hidden] { display: none !important; }
.mx-today-overlay {
    position: fixed;
    inset: 0;
    z-index: 100500;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}
.mx-today-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mx-today-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 10, .76);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.mx-today-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(440px, 94vw);
    max-width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    color: #f5f6ff;
    background: linear-gradient(155deg, #11111c 0%, #0b0b12 58%, #10101b 100%);
    border-left: 1px solid rgba(104, 93, 188, .35);
    box-shadow: -18px 0 55px rgba(0, 0, 0, .38);
    transform: translate3d(102%, 0, 0);
    transition: transform .32s cubic-bezier(.2, .75, .25, 1);
    will-change: transform;
    outline: none;
}
.mx-today-overlay.is-open .mx-today-panel { transform: translate3d(0, 0, 0); }
.mx-today-panel-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 20px 20px 16px;
    box-sizing: border-box;
    background: linear-gradient(155deg, #11111c 0%, #10101a 100%);
}
.mx-today-panel-heading { min-width: 0; }
.mx-today-panel-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.25px;
    text-shadow: none;
}
.mx-today-panel-heading p {
    margin: 5px 0 0;
    color: #9692a7;
    font-size: 11px;
    line-height: 1.4;
}
.mx-today-close {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.mx-today-close:hover,
.mx-today-close:focus-visible {
    color: #fff;
    background: rgba(122, 63, 224, .2);
    border-color: rgba(122, 63, 224, .65);
    transform: rotate(90deg);
}
.mx-today-panel-accent {
    flex: 0 0 2px;
    width: 100%;
    background: linear-gradient(90deg, #0588FF, #5362EA 52%, #7A3FE0);
}
.mx-today-panel-list {
    display: block;
    flex: 1 1 0%;
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
    min-height: 0;
    padding: 14px 14px 22px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(122, 95, 210, .55) transparent;
}
.mx-today-panel-list > .mx-today-item { display: flex; width: 100%; }
.mx-today-panel-list::-webkit-scrollbar { width: 5px; }
.mx-today-panel-list::-webkit-scrollbar-track { background: transparent; }
.mx-today-panel-list::-webkit-scrollbar-thumb { background: rgba(122, 95, 210, .5); border-radius: 8px; }
.mx-today-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-width: 0;
    margin: 0 0 10px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 13px;
    color: #f4f3fb;
    background: rgba(255, 255, 255, .045);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.mx-today-item:hover,
.mx-today-item:focus-visible {
    color: #fff;
    border-color: rgba(88, 119, 255, .55);
    background: rgba(68, 63, 116, .23);
    transform: translateY(-1px);
    text-decoration: none;
}
.mx-today-item-hitarea {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.mx-today-item-hitarea:focus-visible {
    outline: 2px solid #69baff;
    outline-offset: -3px;
}
.mx-today-item-poster,
.mx-today-item-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.mx-today-item-poster {
    display: block;
    text-decoration: none;
    flex: 0 0 76px;
    width: 76px;
    height: 114px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    background: #171522;
}
.mx-today-item-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.mx-today-item-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}
.mx-today-item-type {
    color: #70aaff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .75px;
    line-height: 1.2;
}
.mx-today-item-title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-decoration: none;
}
.mx-today-item-status {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid rgba(5, 136, 255, .18);
    border-radius: 5px;
    color: #d5e8ff;
    background: rgba(5, 136, 255, .13);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.mx-today-item-language,
.mx-today-item-time {
    max-width: 100%;
    color: #a4a0b1;
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.mx-today-item-language { position: relative; z-index: 3; pointer-events: none; }
.mx-today-item-language a {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    color: inherit;
    text-decoration: none;
    text-underline-offset: 2px;
}
.mx-today-item-language a:hover,
.mx-today-item-language a:focus-visible {
    color: #69baff;
    text-decoration: underline;
}
.mx-today-item-time { color: #858195; }
.mx-today-empty {
    margin: 18px 4px;
    padding: 25px 16px;
    border: 1px dashed rgba(255, 255, 255, .13);
    border-radius: 12px;
    color: #a5a0b4;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}
.mx-today-empty[hidden] { display: none !important; }
html.mx-today-open,
body.mx-today-open { overflow: hidden !important; }

@media (max-width: 767px) {
    html body.home nav.mx-homepage-buttons .mx-homepage-buttons-inner > .mx-homepage-button--today { font-size: 12px !important; }
    html body.home nav.mx-homepage-buttons .mx-homepage-buttons-inner > .mx-homepage-button--today i { font-size: 14px; }
    .mx-today-panel {
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        border-left: 0;
        transform: translate3d(100%, 0, 0);
    }
    .mx-today-panel-header { width: 100%; max-width: none; margin: 0; padding: max(16px, env(safe-area-inset-top)) 16px 14px; }
    .mx-today-panel-list { width: 100%; max-width: none; margin: 0; padding: 12px 12px max(20px, env(safe-area-inset-bottom)); }
    .mx-today-item { gap: 11px; padding: 9px; }
    .mx-today-item-poster { flex-basis: 72px; width: 72px; height: 108px; }
    .mx-today-item-title { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .mx-today-overlay,
    .mx-today-panel,
    .mx-today-item,
    .mx-today-close { transition-duration: .01ms !important; }
}
