/*
 * Mix365 schedule Details button.
 */

.mix365-schedule-details-row {
    display: flex;
    width: 100%;
    margin-top: 15px;
}

.mix365-schedule-details-button {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 138px;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 23, 79, 0.52);
    border-radius: 0;
    background:
        linear-gradient(
            135deg,
            rgba(233, 0, 67, 0.98),
            rgba(166, 0, 48, 0.98)
        );
    color: #ffffff !important;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.14em;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.24),
        0 0 22px rgba(233, 0, 67, 0.12);
    transition:
        transform 180ms ease,
        filter 180ms ease,
        box-shadow 180ms ease;
}

.mix365-schedule-details-button::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.26),
            transparent
        );
    transform: translateX(-120%);
    transition: transform 420ms ease;
}

.mix365-schedule-details-button::after {
    content: "→";
    position: relative;
    z-index: 1;
    font-size: 19px;
    line-height: 1;
    letter-spacing: 0;
}

.mix365-schedule-details-button span {
    position: relative;
    z-index: 1;
}

.mix365-schedule-details-button:hover {
    color: #ffffff !important;
    filter: brightness(1.09);
    transform: translateY(-2px);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(233, 0, 67, 0.22);
}

.mix365-schedule-details-button:hover::before {
    transform: translateX(120%);
}

.mix365-schedule-details-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/*
 * When added beside existing action buttons, keep everything aligned.
 */

:is(
    .schedule-entry-actions,
    .mix365-schedule-card-actions,
    .mix365-schedule-actions,
    .schedule-card-actions
)
.mix365-schedule-details-button {
    height: 34px;
    min-height: 34px;
    min-width: 104px;
    padding: 0 13px;
    font-size: 10px;
}

:is(
    .schedule-entry-actions,
    .mix365-schedule-card-actions,
    .mix365-schedule-actions,
    .schedule-card-actions
)
.mix365-schedule-details-button::after {
    font-size: 16px;
}

/*
 * The themed card may clip overflowing action rows. Keep the injected
 * link visible without changing the card's presentation.
 */

.mix365-schedule-card-content,
.mix365-schedule-card-body,
.artist-content,
.podcast-item-content {
    overflow: visible;
}

@media (max-width: 640px) {
    .mix365-schedule-details-row,
    .mix365-schedule-details-button {
        width: 100%;
    }

    .mix365-schedule-details-button {
        min-height: 46px;
    }

    :is(
        .schedule-entry-actions,
        .mix365-schedule-card-actions,
        .mix365-schedule-actions,
        .schedule-card-actions
    )
    .mix365-schedule-details-button {
        width: auto;
        min-height: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mix365-schedule-details-button,
    .mix365-schedule-details-button::before {
        transition: none !important;
    }
}
