/*
 * MIX365 WORDPRESS SHOW SCHEDULE
 */

.mix365-schedule-page {
    --schedule-red: #ed0044;
    --schedule-red-bright: #ff245d;
    --schedule-black: #030305;
    --schedule-panel: #0b0c11;
    --schedule-border:
        rgba(255, 255, 255, 0.11);

    position: relative;

    width: 100vw;
    min-height: 100vh;

    margin-left:
        calc(50% - 50vw);
    margin-right:
        calc(50% - 50vw);

    overflow: hidden;

    color: #ffffff;
    background:
        radial-gradient(
            circle at 78% 15%,
            rgba(237, 0, 68, 0.14),
            transparent 34%
        ),
        radial-gradient(
            circle at 10% 70%,
            rgba(237, 0, 68, 0.07),
            transparent 30%
        ),
        #030305;
}

/* =========================================================
   HERO
   ========================================================= */

.mix365-schedule-hero {
    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-bottom:
        1px solid
        rgba(237, 0, 68, 0.28);
}

.mix365-schedule-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            112deg,
            transparent 0 45%,
            rgba(237, 0, 68, 0.08) 45% 46%,
            transparent 46% 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.86)
        );

    pointer-events: none;
}

.mix365-schedule-hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.13;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );

    background-size:
        64px 64px;
}

.mix365-schedule-hero-inner {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 34px));

    margin: 0 auto;

    text-align: center;
}

.mix365-schedule-kicker {
    display: inline-flex;
    align-items: center;

    margin-bottom: 22px;
    padding: 9px 14px;

    border:
        1px solid
        rgba(237, 0, 68, 0.44);

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mix365-schedule-heading {
    position: relative;

    width: fit-content;
    max-width: 100%;

    margin: 0 auto;

    color: #ffffff;

    font-size:
        clamp(58px, 10vw, 150px);

    line-height: 0.86;
    font-weight: 950;
    letter-spacing: -0.075em;
    text-transform: uppercase;

    isolation: isolate;
    contain: paint;

    text-shadow:
        4px 0 0
        rgba(237, 0, 68, 0.25);
}

.mix365-schedule-heading::before,
.mix365-schedule-heading::after {
    content:
        attr(data-glitch);

    position: absolute;
    inset: 0;

    overflow: hidden;

    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: inherit;

    pointer-events: none;
    opacity: 0;
}

.mix365-schedule-heading::before {
    color:
        rgba(237, 0, 68, 0.88);

    animation:
        mix365ScheduleHeadingRed
        5.5s steps(2, end)
        infinite;
}

.mix365-schedule-heading::after {
    color:
        rgba(255, 255, 255, 0.7);

    animation:
        mix365ScheduleHeadingWhite
        5.5s steps(2, end)
        infinite;
}

@keyframes mix365ScheduleHeadingRed {
    0%,
    68%,
    74%,
    100% {
        opacity: 0;
        transform: none;
    }

    69% {
        opacity: 0.9;
        transform:
            translate3d(8px, -2px, 0);

        clip-path:
            polygon(
                0 18%,
                100% 18%,
                100% 36%,
                0 36%
            );
    }

    71% {
        opacity: 0.65;
        transform:
            translate3d(-7px, 2px, 0);

        clip-path:
            polygon(
                0 61%,
                100% 61%,
                100% 81%,
                0 81%
            );
    }

    73% {
        opacity: 0.8;
        transform:
            translate3d(4px, 0, 0);

        clip-path:
            polygon(
                0 39%,
                100% 39%,
                100% 52%,
                0 52%
            );
    }
}

@keyframes mix365ScheduleHeadingWhite {
    0%,
    69%,
    75%,
    100% {
        opacity: 0;
        transform: none;
    }

    70% {
        opacity: 0.65;
        transform:
            translate3d(-8px, 2px, 0);

        clip-path:
            polygon(
                0 8%,
                100% 8%,
                100% 25%,
                0 25%
            );
    }

    72% {
        opacity: 0.48;
        transform:
            translate3d(6px, -1px, 0);

        clip-path:
            polygon(
                0 49%,
                100% 49%,
                100% 65%,
                0 65%
            );
    }

    74% {
        opacity: 0.58;
        transform:
            translate3d(-4px, 1px, 0);

        clip-path:
            polygon(
                0 76%,
                100% 76%,
                100% 91%,
                0 91%
            );
    }
}

.mix365-schedule-intro {
    width:
        min(680px, 100%);

    margin:
        28px auto 0;

    color:
        rgba(255, 255, 255, 0.65);

    font-size:
        clamp(15px, 1.8vw, 18px);

    line-height: 1.7;
}

/* =========================================================
   MAIN SHELL
   ========================================================= */

.mix365-schedule-shell {
    position: relative;
    z-index: 3;

    width:
        min(1420px, calc(100% - 40px));

    margin: 0 auto;
    padding:
        70px 0 120px;
}

/* =========================================================
   WEEK NAVIGATION
   ========================================================= */

.mix365-schedule-week {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    margin-bottom: 38px;
}

.mix365-week-button {
    width: 50px;
    height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    color: #ffffff;
    background: #0d0e13;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.mix365-week-button:hover {
    transform:
        translateY(-2px);

    border-color:
        var(--schedule-red);

    background:
        var(--schedule-red);
}

.mix365-week-copy {
    min-width: 280px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.mix365-week-copy span {
    color: #ffffff;

    font-size:
        clamp(20px, 3vw, 32px);

    line-height: 1.2;
    font-weight: 900;
}

.mix365-week-copy strong {
    display: block;

    margin-top: 7px;

    color:
        var(--schedule-red-bright);

    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.mix365-schedule-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;

    margin-bottom: 34px;
}

.mix365-schedule-tabs {
    min-width: 0;

    display: flex;
    gap: 11px;

    overflow-x: auto;

    padding-bottom: 6px;

    scrollbar-width: none;
}

.mix365-schedule-tabs::-webkit-scrollbar {
    display: none;
}

.mix365-day-button,
.mix365-schedule-view button {
    appearance: none;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    color:
        rgba(255, 255, 255, 0.74);

    background:
        linear-gradient(
            180deg,
            #111218,
            #090a0e
        );

    font-family: inherit;
    font-weight: 850;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        background 180ms ease;
}

.mix365-day-button {
    min-width: 124px;
    min-height: 55px;

    padding: 13px 18px;

    font-size: 12px;
    letter-spacing: 0.07em;
}

.mix365-day-button:hover,
.mix365-schedule-view button:hover {
    color: #ffffff;

    border-color:
        rgba(237, 0, 68, 0.6);

    transform:
        translateY(-1px);
}

.mix365-day-button.is-active {
    color: #ffffff;

    border-color:
        var(--schedule-red);

    background:
        linear-gradient(
            135deg,
            #ed0044,
            #9d002e
        );

    box-shadow:
        0 13px 34px
        rgba(237, 0, 68, 0.22);
}

.mix365-day-button.is-today:not(.is-active) {
    border-color:
        rgba(237, 0, 68, 0.55);

    color:
        #ff7a9e;
}

.mix365-schedule-view {
    flex: 0 0 auto;

    display: inline-flex;
    gap: 5px;

    padding: 5px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    background: #090a0e;
}

.mix365-schedule-view button {
    min-height: 44px;

    padding: 11px 18px;

    border: none;

    font-size: 11px;
    letter-spacing: 0.08em;
}

.mix365-schedule-view button.is-active {
    color: #ffffff;
    background:
        var(--schedule-red);
}

/* =========================================================
   STATUS
   ========================================================= */

.mix365-schedule-status {
    min-height: 24px;

    margin-bottom: 20px;

    color:
        rgba(255, 255, 255, 0.58);

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.mix365-schedule-status.is-error {
    color: #ff6e8e;
}

/* =========================================================
   CARD VIEW
   ========================================================= */

.mix365-schedule-results {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 26px;
}

.mix365-schedule-card {
    position: relative;

    min-width: 0;
    overflow: hidden;

    border:
        1px solid
        rgba(237, 0, 68, 0.46);

    background:
        linear-gradient(
            180deg,
            #101117,
            #07080b
        );

    clip-path:
        polygon(
            0 18px,
            18px 18px,
            18px 0,
            calc(100% - 45px) 0,
            calc(100% - 45px) 5px,
            100% 5px,
            100% calc(100% - 25px),
            calc(100% - 8px) calc(100% - 25px),
            calc(100% - 8px) 100%,
            40px 100%,
            40px calc(100% - 6px),
            0 calc(100% - 6px)
        );

    box-shadow:
        0 22px 55px
        rgba(0, 0, 0, 0.35);
}

.mix365-schedule-image {
    position: relative;

    height: 285px;

    overflow: hidden;

    background: #050506;
}

.mix365-schedule-image::before {
    content: "";

    position: absolute;
    z-index: 2;
    inset: 0;

    background:
        repeating-linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045) 0,
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px,
            transparent 5px
        ),
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(0, 0, 0, 0.88)
        );

    pointer-events: none;
}

.mix365-schedule-image::after {
    content: "";

    position: absolute;
    z-index: 3;

    left: 0;
    right: 0;
    top: 23%;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--schedule-red) 0 30%,
            transparent 30% 67%,
            rgba(255, 255, 255, 0.75) 67% 84%,
            transparent 84%
        );

    opacity: 0.75;
}

.mix365-schedule-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter:
        contrast(1.1)
        saturate(0.82)
        brightness(0.82);
}

.mix365-schedule-card.has-flyer
.mix365-schedule-image img {
    object-fit: contain;
    background: #050506;
}

.mix365-schedule-time {
    position: absolute;
    z-index: 4;

    left: 16px;
    bottom: 16px;

    padding: 8px 11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    color: #ffffff;
    background:
        rgba(0, 0, 0, 0.68);

    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    backdrop-filter: blur(7px);
}

.mix365-schedule-card-content {
    min-height: 210px;

    padding: 23px 22px 25px;
}

.mix365-schedule-card h2,
.mix365-schedule-list-main h2 {
    margin: 0;

    color: #ffffff;

    font-size: 20px;
    line-height: 1.22;
    font-weight: 900;
}

.mix365-schedule-description {
    margin: 9px 0 0;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 14px;
    line-height: 1.55;
}

.mix365-schedule-guest {
    margin-top: 10px;

    color:
        #ff6d94;

    font-size: 12px;
    font-weight: 850;
}

.mix365-schedule-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 18px;
}

.mix365-schedule-badge {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    color:
        rgba(255, 255, 255, 0.72);

    background:
        rgba(255, 255, 255, 0.04);

    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mix365-schedule-badge.is-repeat {
    border-color:
        rgba(237, 0, 68, 0.42);

    color:
        #ff8baa;
}

/* =========================================================
   LIST VIEW
   ========================================================= */

.mix365-schedule-results.is-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mix365-schedule-list-item {
    display: grid;

    grid-template-columns:
        150px 72px minmax(0, 1fr);

    align-items: center;
    gap: 20px;

    padding: 18px 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    background:
        linear-gradient(
            90deg,
            rgba(237, 0, 68, 0.06),
            rgba(11, 12, 17, 0.96) 24%
        );
}

.mix365-schedule-list-time {
    color:
        #ff668d;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.mix365-schedule-list-image {
    width: 72px;
    height: 72px;

    overflow: hidden;

    border:
        1px solid
        rgba(237, 0, 68, 0.42);

    clip-path:
        polygon(
            0 8px,
            8px 8px,
            8px 0,
            100% 0,
            100% calc(100% - 8px),
            calc(100% - 8px) calc(100% - 8px),
            calc(100% - 8px) 100%,
            0 100%
        );
}

.mix365-schedule-list-image img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    filter:
        contrast(1.08)
        saturate(0.84)
        brightness(0.86);
}

.mix365-schedule-list-main {
    min-width: 0;
}

.mix365-schedule-list-main
.mix365-schedule-badges {
    margin-top: 10px;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.mix365-schedule-empty {
    grid-column: 1 / -1;

    padding: 55px 24px;

    border:
        1px dashed
        rgba(237, 0, 68, 0.36);

    color:
        rgba(255, 255, 255, 0.56);

    background:
        rgba(255, 255, 255, 0.025);

    text-align: center;
    font-size: 15px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {
    .mix365-schedule-results {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mix365-schedule-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .mix365-schedule-view {
        align-self: flex-start;
    }

    .mix365-schedule-results {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .mix365-schedule-hero {
        min-height: 360px;
    }

    .mix365-schedule-heading {
        font-size:
            clamp(52px, 16vw, 90px);
    }

    .mix365-schedule-shell {
        width:
            min(100% - 24px, 1420px);

        padding:
            48px 0 90px;
    }

    .mix365-schedule-week {
        gap: 10px;
    }

    .mix365-week-copy {
        min-width: 0;
        flex: 1;
    }

    .mix365-week-button {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .mix365-day-button {
        min-width: 112px;
        min-height: 50px;
    }

    .mix365-schedule-view {
        width: 100%;
    }

    .mix365-schedule-view button {
        flex: 1;
    }

    .mix365-schedule-results {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .mix365-schedule-image {
        height: 270px;
    }

    .mix365-schedule-list-item {
        grid-template-columns:
            60px minmax(0, 1fr);

        gap: 13px;
    }

    .mix365-schedule-list-time {
        grid-column: 1 / -1;
    }

    .mix365-schedule-list-image {
        width: 60px;
        height: 60px;
    }

    .mix365-schedule-list-main h2 {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mix365-schedule-heading::before,
    .mix365-schedule-heading::after {
        animation: none !important;
    }
}
