/* ── Wrapper ── */
.mws-wrapper {
    position: relative;
    width: 100%;
    height: var(--mws-height, 75vh);
    min-height: 320px;
    overflow: hidden;
    background: #000;
    user-select: none;
}

/* ── Track ── */
.mws-track {
    position: absolute;
    inset: 0;
}

/* ── Slides ── */
.mws-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s ease;
    transform: scale(1);
    animation: none;
    pointer-events: none;
}

.mws-slide-active {
    opacity: 1;
    pointer-events: auto;
    animation: mws-kenburns 8s ease-out forwards;
}

.mws-slide-leaving {
    opacity: 0;
    z-index: 1;
}

.mws-slide-active {
    z-index: 2;
}

@keyframes mws-kenburns {
    from { transform: scale(1);    }
    to   { transform: scale(1.06); }
}

/* ── Overlay ── */
.mws-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 55%, transparent 100%),
        linear-gradient(to top,    rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 80%);
    z-index: 1;
}

/* ── Content ── */
.mws-content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: clamp(24px, 5vw, 64px);
    max-width: 660px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.mws-slide-active .mws-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Badge ── */
.mws-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 40px;
    margin-bottom: 14px;
}
.mws-badge-running  { background: rgba(239,68,68,.25); border: 1px solid rgba(239,68,68,.6); color: #fca5a5; }
.mws-badge-upcoming { background: rgba(139,92,246,.25); border: 1px solid rgba(139,92,246,.6); color: #c4b5fd; }

/* ── Title ── */
.mws-title {
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 12px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.mws-title a { color: inherit; text-decoration: none; }
.mws-title a:hover { opacity: .85; }

/* ── Meta ── */
.mws-meta {
    font-size: .9rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: rgba(255,255,255,.75);
}
.mws-next-show { color: #86efac; }
.mws-release   { color: #93c5fd; }

/* ── Description ── */
.mws-desc {
    font-size: clamp(.8rem, 1.8vw, 1rem);
    line-height: 1.65;
    color: rgba(255,255,255,.7);
    margin: 0 0 24px;
    max-width: 500px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s;
}
.mws-slide-active .mws-desc { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.mws-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.65s, transform 0.5s ease 0.65s;
}
.mws-slide-active .mws-actions { opacity: 1; transform: translateY(0); }

.mws-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.mws-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.mws-btn-running  { background: linear-gradient(135deg,#6c47ff,#a855f7); color:#fff; box-shadow: 0 4px 20px rgba(108,71,255,.4); }
.mws-btn-upcoming { background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.5); color:#fff; backdrop-filter: blur(8px); }
.mws-btn-upcoming:hover { background: rgba(255,255,255,.25); }

/* ── Arrows ── */
.mws-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s, transform .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mws-arrow:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.08); }
.mws-arrow-prev { left: 16px; }
.mws-arrow-next { right: 16px; }

/* ── Dots ── */
.mws-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}
.mws-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .3s;
}
.mws-dot-active {
    width: 28px;
    background: #fff;
}

/* ── Progress bar ── */
.mws-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #6c47ff, #a855f7);
    z-index: 10;
    box-shadow: 0 0 8px rgba(108,71,255,.6);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .mws-wrapper { height: 60vh; }
    .mws-arrow   { display: none; }
    .mws-content { max-width: 100%; padding: 20px 20px 48px; }
}
@media (max-width: 480px) {
    .mws-wrapper { height: 55vh; min-height: 260px; }
    .mws-desc    { display: none; }
}
