.mando-widget-rail {
    position: fixed;
    top: 104px;
    bottom: 24px;
    width: 160px;
    z-index: 850;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}

.mando-widget-rail-left {
    left: -60px;
}

.mando-widget-rail-right {
    right: -60px;
}

.mando-widget-rail-inner {
    position: relative;
    width: 160px;
    min-height: 300px;
    max-height: calc(100vh - 140px);
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
}

.mando-widget-slot {
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mando-widget-slot iframe,
.mando-widget-slot img,
.mando-widget-slot embed,
.mando-widget-slot object {
    max-width: 100%;
}

.mando-widget-frame {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
}

.mando-widget-slot-left .mando-widget-frame,
.mando-widget-slot-right .mando-widget-frame {
    width: 160px;
    height: 600px;
}

.mando-widget-start-slot .mando-widget-frame {
    width: 100%;
    height: 300px;
}

.mando-widget-bottom {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 870;
    width: min(920px, calc(100vw - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}

.mando-widget-bottom[hidden] {
    display: none !important;
}

.mando-widget-bottom-inner {
    position: relative;
    min-height: 110px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(10, 12, 26, 0.90);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    pointer-events: auto;
}

.mando-widget-bottom-slot {
    min-height: 110px;
    padding: 8px 36px 8px 12px;
}

.mando-widget-bottom-slot .mando-widget-frame {
    width: 100%;
    height: 110px;
}

.mando-widget-bottom-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    line-height: 1;
    font-size: 16px;
}

.mando-widget-rail-close,
.mando-widget-start-close {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    line-height: 1;
}

.mando-widget-rail-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 16px;
    z-index: 2;
}

.mando-widget-start {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.mando-widget-start[hidden],
.mando-widget-rail[hidden] {
    display: none !important;
}

.mando-page-tv .mando-widget-rail {
    display: none !important;
}

.mando-widget-start-dialog {
    position: relative;
    width: min(94vw, 920px);
    min-height: 280px;
    max-height: 88vh;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #090b18;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.mando-widget-start-slot {
    min-height: 280px;
    padding: 18px;
}

.mando-widget-start-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 22px;
    z-index: 2;
}

.mando-widget-empty {
    display: none !important;
}

.mando-widget-slot-fallback {
    min-height: inherit;
    padding: 10px;
}

.mando-widget-fallback {
    display: flex;
    width: 100%;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 176, 0, 0.34);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 143, 0, 0.18), rgba(137, 43, 226, 0.18));
    color: #fff;
    text-align: center;
}

.mando-widget-fallback-text {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.25;
}

.mando-widget-fallback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #ffb000;
    color: #0b0d18;
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.mando-widget-rail .mando-widget-fallback {
    min-height: 580px;
    flex-direction: column;
}

.mando-widget-bottom .mando-widget-fallback {
    min-height: 92px;
    flex-direction: row;
}

.mando-widget-start .mando-widget-fallback {
    min-height: 240px;
    flex-direction: column;
}

.mando-smartlink-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 890;
    width: min(280px, calc(100vw - 32px));
    pointer-events: none;
}

.mando-smartlink-cta-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 58px;
    padding: 12px 42px 12px 16px;
    border: 1px solid rgba(255, 176, 0, 0.42);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffb000, #ff4d4f);
    color: #080a14;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    pointer-events: auto;
}

.mando-smartlink-cta-title {
    font-weight: 900;
    font-size: 14px;
    line-height: 1.1;
}

.mando-smartlink-cta-text {
    color: rgba(8, 10, 20, 0.76);
    font-weight: 800;
    font-size: 11px;
    line-height: 1.2;
}

.mando-smartlink-cta-close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    line-height: 1;
    font-size: 16px;
    pointer-events: auto;
}

.mando-page-tv .mando-smartlink-cta {
    bottom: 136px;
}

@media (max-width: 1500px) {
    .mando-widget-rail-left {
        left: -90px;
    }

    .mando-widget-rail-right {
        right: -90px;
    }
}

@media (max-width: 1180px), (max-height: 620px) {
    .mando-widget-rail {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mando-widget-start {
        padding: 12px;
    }

    .mando-widget-start-dialog {
        width: 100%;
        min-height: 220px;
    }

    .mando-widget-start-slot {
        min-height: 220px;
        padding: 12px;
    }

    .mando-smartlink-cta {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }

    .mando-page-tv .mando-smartlink-cta {
        bottom: 132px;
    }
}
