/* DarkMovis Featured Movie — cinematic single-title card, no external runtime. */
.dmfm {
    --dmfm-accent: #ff3147;
    --dmfm-red-rgb: 255, 49, 71;
    --dmfm-navy: #07101d;
    --dmfm-height: 440px;
    --dmfm-focus-y: 35%;
    --dmfm-ease: cubic-bezier(.2, .8, .2, 1);
    position: relative;
    isolation: isolate;
    width: min(calc(var(--dmui-page-width, 100vw) - 28px), 1366px);
    height: var(--dmfm-height);
    min-height: 380px;
    margin: 30px calc((100% - min(calc(var(--dmui-page-width, 100vw) - 28px), 1366px)) / 2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 34px;
    color: #fff;
    background: #07101d;
    box-shadow: 0 28px 74px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .075), inset 0 -1px rgba(var(--dmfm-red-rgb), .08);
    direction: rtl;
    text-align: right;
    contain: layout paint style;
    transform: translateZ(0);
}

.dmfm,
.dmfm * { box-sizing: border-box; }

.dmfm::before,
.dmfm::after {
    content: "";
    position: absolute;
    z-index: 8;
    right: 34px;
    left: 34px;
    height: 5px;
    opacity: .32;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .38) 0 11px, transparent 11px 23px);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.dmfm::before { top: 12px; }
.dmfm::after { bottom: 12px; }

.dmfm__backdrop,
.dmfm__veil,
.dmfm__decor { position: absolute; inset: 0; pointer-events: none; }

.dmfm__backdrop { z-index: -4; overflow: hidden; background: linear-gradient(145deg, #172b47, #07101d 56%, #310917); }
.dmfm__backdrop-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center var(--dmfm-focus-y); background: #07101d; transform: translateZ(0) scale(1.012); }
.dmfm__backdrop-image--empty { background: radial-gradient(circle at 76% 24%, rgba(var(--dmfm-red-rgb), .2), transparent 26%), linear-gradient(135deg, #172941, #07101d 54%, #2c0915); }

.dmfm__veil {
    z-index: -3;
    background:
        linear-gradient(270deg, rgba(4, 9, 17, .98) 0%, rgba(4, 9, 17, .92) 31%, rgba(4, 9, 17, .69) 56%, rgba(4, 9, 17, .2) 82%, rgba(4, 9, 17, .47) 100%),
        linear-gradient(0deg, rgba(4, 8, 16, .94), transparent 52%),
        radial-gradient(circle at 78% 24%, rgba(var(--dmfm-red-rgb), .16), transparent 34%);
}

.dmfm__veil::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 68%);
    mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.dmfm__decor { z-index: -1; overflow: hidden; }
.dmfm__decor::before { content: "DARK\A MOVIS"; white-space: pre; position: absolute; top: 43px; right: 41px; color: rgba(255, 255, 255, .025); font: 950 76px/.82 Arial, sans-serif; letter-spacing: -.06em; }
.dmfm__decor::after { content: ""; position: absolute; top: -26%; left: 13%; width: 230px; height: 620px; opacity: .3; background: linear-gradient(90deg, transparent, rgba(var(--dmfm-red-rgb), .16), transparent); transform: rotate(24deg); }
.dmfm__decor > i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 11px rgba(255, 255, 255, .5); animation: dmfmSignal 3.4s ease-in-out infinite; }
.dmfm__decor > i:nth-child(1) { top: 17%; left: 8%; }
.dmfm__decor > i:nth-child(2) { top: 28%; left: 19%; animation-delay: -1.2s; }
.dmfm__decor > i:nth-child(3) { bottom: 20%; left: 10%; width: 4px; height: 4px; animation-delay: -2.1s; }
.dmfm__decor > span { position: absolute; bottom: -88px; left: -60px; width: 260px; height: 260px; border: 1px solid rgba(var(--dmfm-red-rgb), .14); border-radius: 50%; box-shadow: inset 0 0 0 34px rgba(var(--dmfm-red-rgb), .025), inset 0 0 0 68px rgba(var(--dmfm-red-rgb), .025); }

.dmfm__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 32px clamp(30px, 4vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 238px;
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
}
.dmfm--no-poster .dmfm__inner { grid-template-columns: minmax(0, 1fr); }

.dmfm__copy { min-width: 0; width: min(720px, 100%); }
.dmfm__eyebrow { width: fit-content; min-height: 35px; margin-bottom: 15px; padding: 5px 11px 5px 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(var(--dmfm-red-rgb), .34); border-radius: 12px; color: #ffd9de; background: linear-gradient(135deg, rgba(var(--dmfm-red-rgb), .17), rgba(7, 16, 29, .76)); box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 9px 26px rgba(var(--dmfm-red-rgb), .1); font-size: 12px; font-weight: 900; }
.dmfm__eyebrow-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #ff8493; background: rgba(var(--dmfm-red-rgb), .13); }
.dmfm__eyebrow-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.dmfm__eyebrow > i { width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: var(--dmfm-accent); box-shadow: 0 0 0 3px rgba(var(--dmfm-red-rgb), .08), 0 0 12px rgba(var(--dmfm-red-rgb), .8); animation: dmfmPulse 2.4s ease-in-out infinite; }

.dmfm__title { max-width: 690px; margin: 0; display: -webkit-box; overflow: hidden; color: #fff; font-size: clamp(38px, 4vw, 58px); font-weight: 950; line-height: 1.12; letter-spacing: -1.3px; text-shadow: 0 12px 34px rgba(0, 0, 0, .5); text-wrap: balance; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dmfm__meta { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.dmfm__meta-item { min-height: 31px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 10px; color: #d9e0ea; background: rgba(8, 16, 29, .68); box-shadow: inset 0 1px rgba(255, 255, 255, .045); font-size: 12px; font-weight: 850; white-space: nowrap; }
.dmfm__meta-item svg { width: 14px; height: 14px; fill: none; stroke: #99a6b8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dmfm__meta-item--score { color: #fff2b5; border-color: rgba(255, 213, 70, .24); background: rgba(255, 194, 36, .08); }
.dmfm__meta-item--score svg { fill: #ffd648; stroke: #ffd648; }
.dmfm__meta-item small { color: #d9b845; font-size: 8px; font-weight: 950; }
.dmfm__meta-item--type { color: #ff9daa; border-color: rgba(var(--dmfm-red-rgb), .18); background: rgba(var(--dmfm-red-rgb), .075); }

.dmfm__story { max-width: 665px; margin: 15px 0 0; display: -webkit-box; overflow: hidden; color: #b8c2d0; font-size: 14px; font-weight: 580; line-height: 1.95; text-align: justify; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dmfm__story--mobile-only { display: none; }

.dmfm__button { position: relative; isolation: isolate; width: fit-content; min-width: 232px; min-height: 61px; margin-top: 16px; padding: 7px 9px 7px 14px; display: inline-flex; align-items: center; gap: 11px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .26); border-radius: 18px; color: #fff !important; background: radial-gradient(circle at 84% -28%, rgba(255, 255, 255, .3), transparent 35%), linear-gradient(145deg, #ff5366, var(--dmfm-accent) 52%, #a80022); box-shadow: 0 14px 34px rgba(var(--dmfm-red-rgb), .27), inset 0 1px rgba(255, 255, 255, .3), inset 0 -2px rgba(85, 0, 17, .28); text-decoration: none !important; transition: transform .22s var(--dmfm-ease), box-shadow .22s ease, filter .22s ease; }
.dmfm__button::before { content: ""; position: absolute; z-index: -1; top: -55%; bottom: -55%; left: -34%; width: 18%; opacity: .72; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg) translateX(-420%); animation: dmfmSheen 4.8s ease-in-out infinite; }
.dmfm__button::after { content: ""; position: absolute; z-index: -1; right: 13px; bottom: 5px; width: 82px; height: 1px; border-radius: 99px; background: linear-gradient(90deg, var(--dmfm-accent), rgba(255, 255, 255, .85), transparent); opacity: .62; }
.dmfm__button-icon { position: relative; width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; color: #fff; background: rgba(66, 0, 14, .22); box-shadow: inset 0 1px rgba(255, 255, 255, .13); }
.dmfm__button-icon svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.dmfm__button-icon > i { position: absolute; top: 6px; right: 6px; width: 4px; height: 4px; border-radius: 50%; background: #fff3a0; box-shadow: 0 0 8px rgba(255, 236, 127, .8); }
.dmfm__button-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: right; }
.dmfm__button-copy strong { color: #fff; font-size: 14px; font-weight: 950; line-height: 1.35; }
.dmfm__button-copy small { color: rgba(255, 255, 255, .72); font-size: 9px; font-weight: 720; line-height: 1.35; }
.dmfm__button-arrow { width: 25px; height: 25px; display: grid; place-items: center; color: rgba(255, 255, 255, .8); transition: transform .22s var(--dmfm-ease); }
.dmfm__button-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dmfm__button:focus-visible { outline: 3px solid rgba(255, 112, 129, .68); outline-offset: 3px; }

.dmfm__poster { position: relative; width: 238px; aspect-ratio: 2 / 3; padding: 5px; display: block; align-self: center; overflow: visible; border: 1px solid rgba(255, 255, 255, .2); border-radius: 26px; color: #fff; background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(7, 16, 29, .75)); box-shadow: 0 28px 62px rgba(0, 0, 0, .58), 0 0 44px rgba(var(--dmfm-red-rgb), .13), inset 0 1px rgba(255, 255, 255, .1); text-decoration: none; transform: perspective(900px) rotateY(-3deg) rotateZ(1deg) translateZ(0); transition: transform .34s var(--dmfm-ease), box-shadow .34s ease; }
.dmfm__poster::before { content: ""; position: absolute; z-index: -1; top: 17%; right: -17px; bottom: 12%; width: 3px; border-radius: 99px; background: linear-gradient(transparent, var(--dmfm-accent), #ffb0ba, var(--dmfm-accent), transparent); box-shadow: 0 0 14px rgba(var(--dmfm-red-rgb), .72); }
.dmfm__poster::after { content: ""; position: absolute; inset: -9px; z-index: -1; border: 1px solid rgba(var(--dmfm-red-rgb), .18); border-radius: 31px; clip-path: polygon(0 0, 38% 0, 38% 3px, 0 3px, 0 100%, 62% 100%, 62% calc(100% - 3px), 0 calc(100% - 3px)); }
.dmfm__poster-image { width: 100%; height: 100%; display: block; overflow: hidden; border-radius: 20px; object-fit: cover; background: linear-gradient(145deg, #172941, #07101d 58%, #2b0a15); }
.dmfm__poster-image--empty { position: relative; }
.dmfm__poster-image--empty::before { content: "DM"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .08); font: 950 54px/1 Arial, sans-serif; }
.dmfm__poster-mark { position: absolute; right: -19px; top: 24px; min-width: 78px; min-height: 43px; padding: 7px 10px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(var(--dmfm-red-rgb), .36); border-radius: 12px; color: #fff; background: linear-gradient(135deg, rgba(var(--dmfm-red-rgb), .92), rgba(121, 0, 24, .95)); box-shadow: 0 9px 24px rgba(var(--dmfm-red-rgb), .27), inset 0 1px rgba(255, 255, 255, .18); transform: rotate(-2deg); }
.dmfm__poster-mark small { font: 750 6px/1.2 Arial, sans-serif; letter-spacing: .12em; opacity: .7; }
.dmfm__poster-mark b { margin-top: 3px; font: 950 11px/1 Arial, sans-serif; letter-spacing: .08em; }
.dmfm__poster-score { position: absolute; left: 14px; bottom: 14px; min-width: 53px; min-height: 42px; padding: 5px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255, 219, 83, .3); border-radius: 12px; background: rgba(5, 10, 18, .84); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.dmfm__poster-score b { color: #fff; font-size: 14px; line-height: 1; }
.dmfm__poster-score small { margin-top: 3px; color: #ffd654; font-size: 7px; font-weight: 950; }

.dmfm__signature { position: absolute; z-index: 5; right: clamp(30px, 4vw, 58px); bottom: 21px; left: clamp(30px, 4vw, 58px); display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .35); font: 800 7px/1 Arial, sans-serif; letter-spacing: .15em; pointer-events: none; }
.dmfm__signature > i { width: 74px; height: 1px; border-radius: 99px; background: linear-gradient(90deg, var(--dmfm-accent), rgba(var(--dmfm-red-rgb), .08)); box-shadow: 0 0 8px rgba(var(--dmfm-red-rgb), .58); }
.dmfm__signature > b { color: rgba(255, 255, 255, .5); font-size: 8px; }

@media (hover: hover) {
    .dmfm__button:hover { color: #fff !important; filter: brightness(1.06); transform: translateY(-3px); box-shadow: 0 19px 42px rgba(var(--dmfm-red-rgb), .34), inset 0 1px rgba(255, 255, 255, .34), inset 0 -2px rgba(85, 0, 17, .25); }
    .dmfm__button:hover .dmfm__button-arrow { transform: translateX(-3px); }
    .dmfm:hover .dmfm__poster { transform: perspective(900px) rotateY(-1deg) rotateZ(0) translateY(-4px); box-shadow: 0 34px 72px rgba(0, 0, 0, .64), 0 0 54px rgba(var(--dmfm-red-rgb), .2); }
}

@media (max-width: 1024px) {
    .dmfm { min-height: 330px; border-radius: 29px; }
    .dmfm__inner { grid-template-columns: minmax(0, 1fr) 190px; gap: 30px; padding-inline: 30px; }
    .dmfm__poster { width: 190px; }
    .dmfm__title { font-size: clamp(31px, 5vw, 46px); }
    .dmfm__story { -webkit-line-clamp: 2; }
}

@media (max-width: 767px) {
    .dmfm {
        width: min(calc(var(--dmui-page-width, 100vw) - 18px), 430px);
        height: var(--dmfm-height);
        min-height: 195px;
        max-height: 230px;
        margin: 18px calc((100% - min(calc(var(--dmui-page-width, 100vw) - 18px), 430px)) / 2);
        border-radius: 21px;
        box-shadow: 0 15px 34px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .07);
    }

    .dmfm::before,
    .dmfm::after { right: 16px; left: 16px; height: 3px; opacity: .2; background-size: auto; }
    .dmfm::before { top: 7px; }
    .dmfm::after { bottom: 7px; }
    .dmfm__backdrop-image { object-position: center var(--dmfm-focus-y); transform: none; }
    .dmfm__veil { background: linear-gradient(270deg, rgba(4, 9, 17, .98) 0%, rgba(4, 9, 17, .94) 52%, rgba(4, 9, 17, .38) 100%), linear-gradient(0deg, rgba(4, 8, 16, .85), transparent 68%); }
    .dmfm__veil::after { display: none; }
    .dmfm__decor::before,
    .dmfm__decor::after,
    .dmfm__decor > span,
    .dmfm__signature { display: none; }
    .dmfm__decor > i { width: 3px; height: 3px; }

    .dmfm__inner { padding: 11px 12px; grid-template-columns: minmax(0, 1fr) 86px; gap: 11px; }
    .dmfm__copy { width: 100%; }
    .dmfm__eyebrow { min-height: 23px; margin-bottom: 5px; padding: 2px 6px 2px 7px; gap: 4px; border-radius: 8px; font-size: 8px; }
    .dmfm__eyebrow-icon { width: 17px; height: 17px; border-radius: 6px; }
    .dmfm__eyebrow-icon svg { width: 11px; height: 11px; }
    .dmfm__eyebrow > i { width: 4px; height: 4px; margin-right: 0; }
    .dmfm__title { max-width: 100%; font-size: 16px; line-height: 1.38; letter-spacing: -.2px; -webkit-line-clamp: 2; }
    .dmfm__meta { margin-top: 6px; gap: 4px; flex-wrap: nowrap; }
    .dmfm__meta-item { min-height: 21px; padding: 2px 5px; gap: 3px; border-radius: 7px; font-size: 9px; }
    .dmfm__meta-item svg { width: 10px; height: 10px; }
    .dmfm__meta-item small { font-size: 6px; }
    .dmfm__meta-item:nth-child(n+3) { display: none; }
    .dmfm__story,
    .dmfm__story--mobile-only { max-width: 100%; margin: 5px 0 0; display: -webkit-box; visibility: visible; opacity: 1; color: #aeb9c8; font-size: 9px; font-weight: 600; line-height: 1.6; text-align: right; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .dmfm__button { min-width: 0; min-height: 34px; margin-top: 7px; padding: 4px 6px 4px 9px; gap: 6px; border-radius: 10px; box-shadow: 0 8px 18px rgba(var(--dmfm-red-rgb), .23), inset 0 1px rgba(255, 255, 255, .23); }
    .dmfm__button::after { right: 8px; width: 48px; }
    .dmfm__button-icon { width: 25px; height: 25px; flex-basis: 25px; border-radius: 8px; }
    .dmfm__button-icon svg { width: 14px; height: 14px; }
    .dmfm__button-icon > i { top: 3px; right: 3px; width: 3px; height: 3px; }
    .dmfm__button-copy strong { font-size: 10px; }
    .dmfm__button-copy small,
    .dmfm__button-arrow { display: none; }

    .dmfm__poster { width: 86px; padding: 3px; border-radius: 14px; box-shadow: 0 12px 27px rgba(0, 0, 0, .5), 0 0 20px rgba(var(--dmfm-red-rgb), .11); transform: none; }
    .dmfm__poster::before { right: -7px; width: 2px; }
    .dmfm__poster::after { inset: -4px; border-radius: 17px; }
    .dmfm__poster-image { border-radius: 10px; }
    .dmfm__poster-mark { top: 12px; right: -8px; min-width: 49px; min-height: 27px; padding: 4px 6px; border-radius: 7px; transform: none; }
    .dmfm__poster-mark small { font-size: 4px; }
    .dmfm__poster-mark b { margin-top: 2px; font-size: 7px; }
    .dmfm__poster-score { left: 7px; bottom: 7px; min-width: 38px; min-height: 29px; padding: 3px 5px; border-radius: 8px; }
    .dmfm__poster-score b { font-size: 10px; }
    .dmfm__poster-score small { margin-top: 2px; font-size: 5px; }
}

@media (max-width: 380px) {
    .dmfm { min-height: 190px; max-height: 220px; }
    .dmfm__inner { grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; padding: 9px 10px; }
    .dmfm__poster { width: 78px; }
    .dmfm__title { font-size: 15px; }
    .dmfm__eyebrow { font-size: 7px; }
    .dmfm__button { margin-top: 6px; }
}

@media (max-width: 340px) {
    .dmfm__inner { grid-template-columns: minmax(0, 1fr) 72px; }
    .dmfm__poster { width: 72px; }
    .dmfm__title { font-size: 14px; }
    .dmfm__meta-item--type { display: none; }
}

@keyframes dmfmPulse {
    0%, 100% { opacity: .65; transform: scale(.82); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes dmfmSignal {
    0%, 100% { opacity: .28; transform: scale(.8); }
    50% { opacity: .9; transform: scale(1.08); }
}

@keyframes dmfmSheen {
    0%, 62% { transform: skewX(-18deg) translateX(-420%); opacity: 0; }
    68% { opacity: .68; }
    82%, 100% { transform: skewX(-18deg) translateX(980%); opacity: 0; }
}

html.dmui-low-power .dmfm *,
html.dmui-low-power .dmfm *::before,
html.dmui-low-power .dmfm *::after { animation: none !important; transition-duration: .01ms !important; }
html.dmui-low-power .dmfm__backdrop-image { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
    .dmfm *,
    .dmfm *::before,
    .dmfm *::after { animation: none !important; transition-duration: .01ms !important; }
}

.dmfm-editor-empty { width: min(100%, 1366px); margin: 24px auto; padding: 26px; border: 1px dashed rgba(255, 49, 71, .42); border-radius: 20px; color: #ff8795; background: #09111e; text-align: center; font: 800 14px/1.8 inherit; }
