/* ══════════════════════════════════════════════════════════════
   WATCHSCOPE — نظام "غرفة القرار" (Verdict Interface Design System)
   ملف تصميم مستقل — يُستخدم عبر كل صفحات الموقع (anime/movie/series)
   يعتمد على وسم <body data-verdict="green|yellow|red"> لتلوين الصفحة
   ══════════════════════════════════════════════════════════════ */

:root {
    --gold: #c4a35a;
    --gold-light: #e8d5a3;
    --bg-void: #060810;
    --bg-deep: #0a0d16;
    --panel: rgba(16, 20, 30, .55);
    --panel-solid: #0d1018;
    --border-soft: rgba(255, 255, 255, .06);
    --text-hi: #f1f3f8;
    --text-mid: #8b93a7;
    --text-dim: #4a5268;
    --font-ui: 'Space Grotesk', sans-serif;
}

[data-verdict="green"] {
    --v-accent: #22e0a0;
    --v-accent-dim: #0f6b4d;
    --v-glow: rgba(34, 224, 160, .35);
}

[data-verdict="yellow"] {
    --v-accent: #f0b94a;
    --v-accent-dim: #8a5f10;
    --v-glow: rgba(240, 185, 74, .35);
}

[data-verdict="red"] {
    --v-accent: #f0546a;
    --v-accent-dim: #8a1526;
    --v-glow: rgba(240, 84, 106, .35);
}

:root {
    /* أحمر الهوية البصرية للشعار — ثابت بمعزل عن لون الحكم الديناميكي */
    --brand-red: #e6384f;
    --brand-red-glow: rgba(230, 56, 79, .45);
}

/* ─── حدّ أدنى من الجودة: تركيز مرئي بالكيبورد + احترام تقليل الحركة ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--v-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Avoid repeatedly rasterizing and filtering the full-bleed hero on phones. */
@media (max-width: 768px) {
    .hero-mega-img {
        animation: none !important;
        filter: none !important;
        transform: none !important;
    }

    .hero-mega-scanline {
        display: none !important;
        animation: none !important;
    }

    .hero-mega-kicker,
    .hero-mega-title,
    .hero-mega-desc,
    .hero-mega-meta,
    .hero-case-tag,
    .hero-scroll-cue {
        animation: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-void);
    color: var(--text-hi);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ─── الخلفية الحيّة ─── */
.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.atmosphere::before,
.atmosphere::after {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .16;
}

.atmosphere::before {
    top: -300px;
    left: -200px;
    background: radial-gradient(circle, var(--v-accent), transparent 65%);
    animation: driftA 34s ease-in-out infinite alternate;
}

.atmosphere::after {
    bottom: -350px;
    right: -250px;
    background: radial-gradient(circle, var(--gold), transparent 65%);
    opacity: .09;
    animation: driftB 40s ease-in-out infinite alternate;
}

@keyframes driftA {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 60px) scale(1.12);
    }
}

@keyframes driftB {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-60px, -50px) scale(1.08);
    }
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/webp,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
    background: var(--v-accent);
    border-radius: 3px;
    opacity: .5;
}

/* ══════════════════════════════════════════════════════════════
   الهيرو الكبير — صورة العمل بملء العرض + العنوان فوقها
   (يخرج عن حدود .page عمداً ليكون Full-Bleed حقيقي)
   ══════════════════════════════════════════════════════════════ */
.hero-mega {
    position: relative;
    width: 100%;
    min-height: 64vh;
    max-height: 680px;
    overflow: hidden;
    z-index: 2;
}

.ws-site-ad-space {
    box-sizing: border-box;
    width: min(1040px, calc(100% - 32px));
    margin: 14px auto 18px;
    padding: 10px 16px 0;
    color: #f3f0e8;
    background: linear-gradient(110deg, rgba(201, 168, 106, .07), rgba(243, 240, 232, .025) 52%, rgba(201, 168, 106, .055));
    border: 1px solid rgba(201, 168, 106, .16);
    border-radius: 16px;
    overflow: hidden;
}

.ws-site-ad-space--work {
    margin-top: calc(78px + env(safe-area-inset-top, 0px));
}

.ws-site-ad-space--about {
    margin-top: calc(78px + env(safe-area-inset-top, 0px));
}

.ws-site-ad-space__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 24px;
    color: rgba(243, 240, 232, .68);
    font: 600 11px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ws-site-ad-space__mark {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 168, 106, .32);
    border-radius: 5px;
    color: #d8ba82;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.ws-site-ad-space__unit {
    box-sizing: border-box;
    min-height: 50px;
    display: grid;
    place-items: center;
    padding: 8px 0;
}

.ws-site-ad-space__unit ins.adsbygoogle {
    width: 100%;
}

.ws-site-ad-space__prompt {
    color: rgba(243, 240, 232, .43);
    font: 500 11px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
}

.ws-site-ad-space__contact-row {
    min-height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid rgba(201, 168, 106, .1);
    color: rgba(243, 240, 232, .52);
    font: 500 10px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ws-site-ad-space__contact {
    color: #d8ba82;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ws-site-ad-space__contact:focus-visible {
    outline: 2px solid #d8ba82;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .ws-site-ad-space {
        width: calc(100% - 20px);
        margin: 10px auto 14px;
        padding: 8px 12px 0;
        border-radius: 13px;
    }

    .ws-site-ad-space--work {
        margin-top: calc(112px + env(safe-area-inset-top, 0px));
    }

    .ws-site-ad-space--about {
        margin-top: calc(112px + env(safe-area-inset-top, 0px));
    }

    .ws-site-ad-space__unit {
        min-height: 56px;
    }

    .ws-site-ad-space__contact-row {
        min-height: 40px;
    }
}

.hero-mega-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation:
        heroImgResolve 1.7s cubic-bezier(.2, .8, .2, 1) both,
        heroKenBurns 28s ease-in-out 1.7s infinite alternate;
}

@keyframes heroImgResolve {
    0% {
        filter: saturate(0) brightness(.28) contrast(1.25);
        transform: scale(1.04);
    }

    100% {
        filter: saturate(.85) brightness(.62) contrast(1.05);
        transform: scale(1);
    }
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(-1.2%, -1%);
    }
}

.hero-mega-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 8, 16, .5) 0%, rgba(6, 8, 16, .05) 26%, rgba(6, 8, 16, .35) 62%, var(--bg-void) 99%),
        linear-gradient(90deg, rgba(6, 8, 16, .55) 0%, transparent 45%);
}

.hero-mega-scanline {
    position: absolute;
    inset: 0;
    height: 2px;
    background: linear-gradient(180deg, transparent, var(--v-glow) 50%, transparent);
    opacity: 0;
    animation: heroScan 7s ease-in-out infinite;
    animation-delay: 1.6s;
}

@keyframes heroScan {

    0%,
    100% {
        top: 0;
        opacity: 0;
    }

    12% {
        opacity: .5;
    }

    50% {
        top: 100%;
        opacity: .5;
    }

    58% {
        opacity: 0;
    }
}

.hero-mega-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 24px 38px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 3;
}

/* ─── تتابع الظهور عند التحميل — الهيرو يُقرأ كملف أدلة يُفتح ─── */
@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-mega-kicker,
.hero-mega-title,
.hero-mega-desc,
.hero-mega-meta,
.hero-case-tag,
.hero-scroll-cue {
    animation: heroRise .9s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-case-tag {
    animation-delay: .1s;
}

.hero-mega-kicker {
    animation-delay: .3s;
}

.hero-mega-title {
    animation-delay: .48s;
}

.hero-mega-desc {
    animation-delay: .72s;
}

.hero-mega-meta {
    animation-delay: .92s;
}

.hero-scroll-cue {
    animation-delay: 1.25s;
}

/* ─── إطار الأدلة — زوايا تؤطّر الهيرو كملف قضية مفتوح ─── */
.hero-frame {
    position: absolute;
    inset: 16px;
    z-index: 4;
    pointer-events: none;
}

.hero-frame span {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: .65;
}

.hero-frame .tl {
    top: 0;
    right: 0;
    border-top: 2px solid var(--v-accent);
    border-right: 2px solid var(--v-accent);
}

.hero-frame .tr {
    top: 0;
    left: 0;
    border-top: 2px solid var(--v-accent);
    border-left: 2px solid var(--v-accent);
}

/* ─── وسم "ملف القضية" — طابع مائل أعلى الهيرو ─── */
.hero-case-tag {
    position: absolute;
    top: calc(72px + env(safe-area-inset-top, 0px));
    right: 26px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 8, 16, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 84, 106, .4);
    color: #ff8a9a;
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: .12em;
    padding: 7px 13px;
    border-radius: 8px;
    transform: rotate(-2deg);
}

.hero-case-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4d67;
    box-shadow: 0 0 8px #ff4d67;
    animation: tagPulse 1.6s ease-in-out infinite;
}

@keyframes tagPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

/* ─── دعوة للتمرير أسفل الهيرو ─── */
.hero-scroll-cue {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    opacity: .8;
}

.hero-scroll-cue span {
    font-family: var(--font-ui);
    font-size: 9px;
    letter-spacing: .25em;
    color: #d8dce6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.hero-scroll-cue .chev-track {
    animation: chevBounce 1.8s ease-in-out infinite;
}

.hero-scroll-cue .chev {
    display: block;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--v-accent);
    border-bottom: 2px solid var(--v-accent);
    transform: rotate(45deg);
}

@keyframes chevBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: .5;
    }

    50% {
        transform: translateY(5px);
        opacity: 1;
    }
}

@media (max-width:640px) {
    .hero-case-tag {
        top: calc(58px + env(safe-area-inset-top, 0px));
        right: 16px;
        font-size: 9px;
        padding: 6px 10px;
    }

    .hero-frame {
        inset: 10px;
    }

    .hero-frame span {
        width: 22px;
        height: 22px;
    }

    .hero-scroll-cue {
        display: none;
    }
}

.hero-mega-kicker {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--v-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-mega-kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--v-accent);
}

.hero-mega-title {
    font-size: clamp(28px, 5.5vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 6px 34px rgba(0, 0, 0, .65);
    color: #fff;
}

.hero-mega-desc {
    font-size: 13.5px;
    color: #d8dce6;
    max-width: 560px;
    line-height: 1.95;
    margin-bottom: 20px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.hero-mega-meta {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.hero-mega-pill {
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11.5px;
    color: #fff;
    font-weight: 700;
}

.hero-mega-pill.verdict {
    background: rgba(0, 0, 0, .35);
    border-color: var(--v-glow);
    color: var(--v-accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── شريط تجريبي (اختياري) ─── */
.demo-strip {
    background: linear-gradient(90deg, var(--v-accent-dim), var(--v-accent));
    color: #0a0d16;
    text-align: center;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    padding: 10px;
    position: relative;
    z-index: 5;
}

/* ══════════════════════════════════════════════════════════════
   شعار الموقع — ثابت بزاوية الصفحة، يكتسب خلفية بعد التمرير
   ══════════════════════════════════════════════════════════════ */
.site-logo {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top, 0px));
    right: 20px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px 8px 9px;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .4s, border-color .4s, box-shadow .4s, padding .3s;
}

.site-logo.scrolled {
    background: rgba(8, 10, 18, .7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .7);
}

.site-logo-mark {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 7px var(--brand-red-glow));
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.site-logo:hover .site-logo-mark {
    transform: rotate(45deg);
}

.site-logo-word {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: .12em;
    color: var(--brand-red);
    white-space: nowrap;
    line-height: 1;
}

.site-logo-word b {
    font-weight: 500;
    color: var(--text-hi);
}

@media (max-width:640px) {
    .site-logo {
        top: 12px;
        right: 12px;
        padding: 6px 12px 6px 7px;
        gap: 7px;
    }

    .site-logo-mark {
        width: 22px;
        height: 22px;
    }

    .site-logo-word {
        font-size: 12px;
        letter-spacing: .08em;
    }
}

@media (max-width:360px) {
    .site-logo-word b {
        display: none;
    }
}

/* ─── بطاقة زجاجية عامة ─── */
.glass-card {
    background: var(--panel);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    padding: 34px 32px;
    position: relative;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow:
        0 26px 60px -18px rgba(0, 0, 0, .6),
        inset 0 1px 0 rgba(255, 255, 255, .05);
    opacity: 0;
    filter: blur(6px);
    transform: translateY(24px);
    transition: opacity .8s cubic-bezier(.2, .8, .2, 1), filter .8s, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.glass-card.in-view {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--v-glow), transparent 70%);
    opacity: .5;
    pointer-events: none;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 10.5px;
    letter-spacing: .22em;
    color: var(--v-accent);
    font-weight: 600;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.section-label::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--v-accent);
}

.glass-card h2 {
    font-size: 19px;
    font-weight: 900;
    color: var(--text-hi);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.glass-card p.body-text {
    font-size: 13.5px;
    color: #cfd4e0;
    line-height: 2.1;
    position: relative;
    z-index: 2;
}

/* ─── تنقّل أقسام صفحة العمل واختصارات التفاصيل ─── */
html {
    scroll-behavior: smooth;
}

section[id],
#watchscope-comments {
    scroll-margin-top: 96px;
}

.work-section-nav {
    position: relative;
    z-index: 3;
    margin: 0 0 22px;
    max-width: 100%;
}

.work-section-nav__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: rgba(13, 15, 21, .84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 32px -24px rgba(0, 0, 0, .9);
}

.work-section-nav__label {
    flex: 0 0 auto;
    color: var(--v-accent);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    white-space: nowrap;
}

.work-section-nav__links {
    display: flex;
    flex: 1 1 auto;
    gap: 7px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 1px 1px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--v-accent) transparent;
}

.work-section-nav__links::-webkit-scrollbar {
    height: 4px;
}

.work-section-nav__links::-webkit-scrollbar-thumb {
    background: var(--v-accent);
    border-radius: 20px;
}

.work-section-nav__links a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(243, 240, 232, .12);
    border-radius: 20px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, .025);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.work-section-nav__links a:hover {
    transform: translateY(-1px);
    border-color: var(--v-accent);
    color: var(--text-hi);
    background: var(--v-glow);
}

.work-section-nav__links a:focus-visible,
.work-ux-toggle:focus-visible {
    outline: 2px solid var(--v-accent);
    outline-offset: 3px;
}

.work-ux-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 3px 0 12px;
    padding: 8px 13px;
    border: 1px solid rgba(243, 240, 232, .16);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
    color: var(--text-hi);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.work-ux-toggle:hover {
    border-color: var(--v-accent);
    color: var(--v-accent);
    background: var(--v-glow);
}

.work-ux-toggle--pos {
    border-color: rgba(34, 224, 160, .32);
}

.work-ux-toggle--pos:hover {
    border-color: #22e0a0;
    color: #22e0a0;
    background: rgba(34, 224, 160, .09);
}

.work-ux-toggle--neg {
    border-color: rgba(240, 84, 106, .32);
}

.work-ux-toggle--neg:hover {
    border-color: #f0546a;
    color: #f0546a;
    background: rgba(240, 84, 106, .09);
}

.work-ux-toggle--sharia {
    margin-top: 16px;
}

@media (max-width:640px) {

    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .page {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero-mega {
        min-height: 580px;
    }

    .hero-mega-content {
        width: 100%;
        max-width: none;
        padding: 0 18px 28px;
    }

    .hero-mega-kicker {
        margin-bottom: 10px;
        font-size: 9px;
        letter-spacing: .18em;
    }

    .hero-mega-title {
        font-size: clamp(26px, 8vw, 34px);
        margin-bottom: 10px;
    }

    .hero-mega-desc {
        margin-bottom: 14px;
        font-size: 12px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .hero-mega-meta {
        gap: 6px;
    }

    .hero-mega-pill {
        max-width: 100%;
        padding: 5px 10px;
        font-size: 10px;
        overflow-wrap: anywhere;
    }

    .site-logo {
        max-width: calc(100vw - 24px);
        overflow: hidden;
    }

    .work-section-nav__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 11px;
    }

    .work-section-nav__links {
        width: 100%;
    }

    .work-section-nav__links a {
        min-height: 38px;
        font-size: 11.5px;
    }

    .work-ux-toggle {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .work-section-nav__links a,
    .work-ux-toggle {
        transition: none;
    }
}

/* ─── شريط الحقائق السريعة — بيانات العمل الموثّقة ─── */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
    gap: 12px;
    margin-top: 22px;
    position: relative;
    z-index: 2;
}

.qf-item {
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 11px 14px;
}

.qf-item .qf-label {
    font-family: var(--font-ui);
    font-size: 9px;
    letter-spacing: .08em;
    color: var(--text-dim);
    margin-bottom: 5px;
    display: block;
}

.qf-item .qf-value {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-hi);
    line-height: 1.5;
}

/* ─── كرة القرار ─── */
.orb-section {
    text-align: center;
    padding: 40px 32px 36px;
}

.orb-wrap {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 10px auto 20px;
}

.orb-wrap svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.orb-track {
    fill: none;
    stroke: rgba(255, 255, 255, .06);
    stroke-width: 10;
}

.orb-fill {
    fill: none;
    stroke: var(--v-accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 502.65;
    stroke-dashoffset: 502.65;
    filter: drop-shadow(0 0 10px var(--v-glow));
    transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1);
}

.orb-sweep {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--v-glow) 8%, transparent 16%);
    animation: sweep 5s linear infinite;
    opacity: .7;
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 100%);
    mask: radial-gradient(circle, transparent 62%, #000 63%, #000 100%);
}

@keyframes sweep {
    to {
        transform: rotate(360deg);
    }
}

.orb-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.orb-icon {
    font-size: 26px;
    margin-bottom: 4px;
}

.orb-verdict-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-hi);
}

.orb-sub {
    font-family: var(--font-ui);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: .1em;
    margin-top: 2px;
}

.verdict-summary {
    font-size: 13.5px;
    color: #cfd4e0;
    max-width: 480px;
    margin: 0 auto;
    line-height: 2;
}

.audit-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 22px;
    position: relative;
    z-index: 2;
}

.app-content-safety-note {
    display: block;
    margin: 8px 0 0;
    padding: 13px 15px;
    border: 1px solid rgba(255, 190, 70, .28);
    border-radius: 12px;
    background: rgba(255, 190, 70, .07);
    color: #e3d2aa;
    direction: rtl;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

.audit-tag {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.8;
    color: #c4cad9;
}

/* The shared details toggle uses the semantic hidden attribute.  This must
   override the card's display:flex rule so collapsed Sharia items stay hidden. */
.audit-tag[hidden] {
    display: none !important;
}

.audit-tag .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.audit-tag.warn .dot {
    background: var(--v-accent);
    box-shadow: 0 0 8px var(--v-glow);
}

.audit-tag.ok .dot {
    background: #22e0a0;
}

/* ══════════════════════════════════════════════════════════════
   صوت الجمهور — نظام التقييم التفاعلي (Audience Verdict Meter)
   ══════════════════════════════════════════════════════════════ */
.rating-card {
    text-align: center;
    padding: 38px 30px 34px;
}

.rating-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.rscore-ring-wrap {
    position: relative;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
}

.rscore-ring-wrap svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rscore-track {
    fill: none;
    stroke: rgba(255, 255, 255, .07);
    stroke-width: 8;
}

.rscore-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 345.6;
    stroke-dashoffset: 345.6;
    filter: drop-shadow(0 0 8px rgba(196, 163, 90, .5));
    transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1);
}

.rscore-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rscore-num {
    font-family: var(--font-ui);
    font-size: 29px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.rscore-num span {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}

.rscore-label {
    font-size: 9.5px;
    color: var(--text-dim);
    letter-spacing: .06em;
    margin-top: 5px;
    text-align: center;
}

.rating-stats {
    max-width: 280px;
}

.rating-stats h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-hi);
    margin-bottom: 6px;
}

.rating-stats p {
    font-size: 11.5px;
    color: var(--text-mid);
    line-height: 1.8;
}

.rating-vote-count {
    font-family: var(--font-ui);
    color: var(--gold-light);
    font-weight: 700;
}

.rating-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.rating-meter-label {
    font-size: 11.5px;
    color: var(--text-mid);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.rating-meter {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    margin: 0 auto 22px;
    max-width: 460px;
    height: 58px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
    z-index: 2;
}

.rating-meter button {
    flex: 1;
    max-width: 36px;
    min-width: 18px;
    border-radius: 8px 8px 4px 4px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
    padding: 0;
    position: relative;
}

.rating-meter button:hover,
.rating-meter button.preview {
    background: linear-gradient(180deg, rgba(196, 163, 90, .55), rgba(196, 163, 90, .2));
    border-color: rgba(196, 163, 90, .65);
    transform: translateY(-4px);
}

.rating-meter button.filled {
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 65%, #8a7038);
    border-color: var(--gold);
    box-shadow: 0 0 14px -2px rgba(196, 163, 90, .65), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.rating-meter button.filled:hover,
.rating-meter button.filled.preview {
    transform: translateY(-4px) scale(1.04);
}

.rating-meter button.user-pick {
    box-shadow: 0 0 0 2px var(--bg-void), 0 0 0 3.5px var(--gold-light), 0 0 16px -1px rgba(196, 163, 90, .7);
}

.rating-meter button.user-pick::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 7px var(--gold-light);
}

.rating-meter button span {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-ui);
    font-size: 9px;
    color: var(--text-dim);
    transition: color .2s;
}

.rating-meter button.filled span,
.rating-meter button.preview span {
    color: var(--gold-light);
}

.rating-cta {
    font-size: 12px;
    color: var(--text-mid);
    position: relative;
    z-index: 2;
    min-height: 18px;
    margin-top: 22px;
}

.rating-cta strong {
    color: var(--gold-light);
}

.rating-cta.done {
    color: #22e0a0;
    font-weight: 700;
}

.rating-cta .redo {
    color: var(--text-dim);
    text-decoration: underline;
    cursor: pointer;
    margin-right: 8px;
    font-size: 11px;
    font-weight: 400;
}

@media (max-width:640px) {
    .rating-top {
        gap: 20px;
    }

    .rscore-ring-wrap {
        width: 106px;
        height: 106px;
    }

    .rscore-num {
        font-size: 23px;
    }

    .rating-meter button span {
        display: inline-block;
    }
}

@media (max-width:380px) {
    .rating-meter {
        gap: 4px;
    }
}

/* روابط المشاهذة. */
.wswa-section {
    --wswa-bg: #0d0f14;
    --wswa-panel: #11141b;
    --wswa-text: #f3f0e8;
    --wswa-muted: #969ba5;
    --wswa-gold: #c9a86a;
    --wswa-red: #e50914;
    direction: rtl;
    color: var(--wswa-text);
    font: inherit;
    margin: clamp(18px, 2.6vw, 30px) 0;
    isolation: isolate;
}

.wswa-section,
.wswa-section * {
    box-sizing: border-box;
}

.wswa-heading {
    margin: 0 0 10px;
    padding-inline: 4px;
}

.wswa-kicker {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
    color: var(--wswa-gold);
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .17em;
    line-height: 1.2;
}

.wswa-kicker-line {
    width: 17px;
    height: 1px;
    flex: 0 0 17px;
    background: var(--wswa-gold);
    opacity: .9;
}

.wswa-heading h2 {
    margin: 0;
    color: var(--wswa-text);
    font-size: clamp(19px, 2.3vw, 24px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.025em;
}

.wswa-heading h2 span {
    display: inline-block;
    color: #fff;
    unicode-bidi: isolate;
}

.wswa-provider-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 84px;
    padding: 13px 16px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 4% 50%, rgba(201, 168, 106, .07), transparent 34%),
        radial-gradient(ellipse at 100% 0%, rgba(229, 9, 20, .09), transparent 42%),
        linear-gradient(110deg, #11141b 0%, #0c0f15 58%, #151014 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 24px rgba(0, 0, 0, .12);
}

.wswa-provider-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ff3b45, var(--wswa-red), rgba(229, 9, 20, .25));
    box-shadow: 0 0 15px rgba(229, 9, 20, .18);
}

.wswa-provider-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 115px;
    height: 115px;
    left: 14%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(229, 9, 20, .07);
    filter: blur(30px);
    pointer-events: none;
}

.wswa-provider-info {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.wswa-netflix-mark {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 46px;
    border: 1px solid rgba(229, 9, 20, .25);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(229, 9, 20, .13), rgba(0, 0, 0, .2));
    color: #f01422;
    font: 900 34px/.9 Arial, sans-serif;
    letter-spacing: -3px;
    text-shadow: 1px 0 rgba(120, 0, 8, .9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.wswa-provider-copy {
    min-width: 0;
}

.wswa-provider-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.wswa-provider-name {
    color: #f4f1ed;
    font: 800 16px/1.25 Arial, sans-serif;
    letter-spacing: .015em;
}

.wswa-official-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b9a77d;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.wswa-official-label>span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--wswa-gold);
    box-shadow: 0 0 7px rgba(201, 168, 106, .3);
}

.wswa-provider-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
}

.wswa-price-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 21px;
    padding: 2px 8px;
    border: 1px solid rgba(201, 168, 106, .25);
    border-radius: 999px;
    background: rgba(201, 168, 106, .08);
    color: #e5d0a5;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.wswa-price-detail {
    color: var(--wswa-muted);
    font-size: 11px;
    line-height: 1.4;
}

.wswa-watch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 43px;
    padding: 0 15px;
    border: 1px solid rgba(201, 168, 106, .72);
    border-radius: 11px;
    background: linear-gradient(135deg, #d9bb7a 0%, #c9a86a 58%, #b99251 100%);
    color: #14120d !important;
    text-decoration: none !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(201, 168, 106, .10), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.wswa-watch-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wswa-watch-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 7px 18px rgba(201, 168, 106, .18);
}

.wswa-watch-link:focus-visible {
    outline: 2px solid var(--wswa-gold);
    outline-offset: 3px;
}

@media (max-width: 559px) {
    .wswa-section {
        margin: 18px 0 22px;
    }

    .wswa-heading {
        margin-bottom: 9px;
    }

    .wswa-kicker {
        font-size: 8px;
        letter-spacing: .14em;
    }

    .wswa-heading h2 {
        font-size: 19px;
    }

    .wswa-provider-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-height: 0;
        padding: 12px;
        border-radius: 13px;
    }

    .wswa-provider-info {
        gap: 9px;
        width: 100%;
    }

    .wswa-provider-copy {
        flex: 1 1 auto;
    }

    .wswa-action {
        width: 100%;
        align-items: stretch;
    }

    .wswa-watch-link {
        width: 100%;
        min-height: 42px;
    }

    .wswa-netflix-mark {
        flex-basis: 36px;
        width: 36px;
        height: 40px;
        border-radius: 9px;
        font-size: 29px;
    }

    .wswa-provider-name {
        font-size: 14px;
    }

    .wswa-official-label {
        font-size: 9px;
    }

    .wswa-provider-meta {
        gap: 6px;
        margin-top: 5px;
    }

    .wswa-price-tag {
        min-height: 20px;
        padding: 2px 7px;
        font-size: 9px;
    }

    .wswa-price-detail {
        font-size: 10px;
    }

    .wswa-watch-link {
        min-height: 40px;
        gap: 6px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 11px;
    }

    .wswa-watch-link svg {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 350px) {
    .wswa-provider-card {
        padding-inline: 8px;
        gap: 6px;
    }

    .wswa-provider-info {
        gap: 7px;
    }

    .wswa-netflix-mark {
        flex-basis: 32px;
        width: 32px;
        height: 36px;
        font-size: 26px;
    }

    .wswa-provider-name-row {
        gap: 5px;
    }

    .wswa-provider-name {
        font-size: 13px;
    }

    .wswa-official-label {
        font-size: 8px;
    }

    .wswa-price-detail {
        display: none;
    }

    .wswa-watch-link {
        padding-inline: 8px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wswa-watch-link {
        transition: none;
    }
}

/* غلاف رابط المشاهدة + الوسم تحت الرابط */
.wswa-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px
}

.wswa-viewing-type {
    margin: 0;
    text-align: center;
    font-size: .8rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--gold, #d4af37)
}

/* شعار عام للمنصات غير Netflix: انسخ حجم وشكل .wswa-netflix-mark عندك، وغيّر الخلفية فقط */
.wswa-provider-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex: 0 0 auto;
    background: rgba(212, 175, 55, .12);
    border: 1px solid rgba(212, 175, 55, .35);
    color: var(--gold, #d4af37);
    font: 800 1.1rem/1 'Space Grotesk', sans-serif
}

/* مسافة بين بطاقتي منصتين */
.wswa-provider-card+.wswa-provider-card {
    margin-top: 8px
}

/* على الهاتف: لو زر الرابط عندك بعرض كامل، اجعل الغلاف كذلك */
@media (max-width:559px) {
    .wswa-action {
        width: 100%
    }
}

/* Streaming platform marks */
.wswa-provider-mark[data-provider] {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 46px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 11px;
    color: transparent;
    font-size: 0;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
                0 5px 14px rgba(0, 0, 0, .25);
}

.wswa-provider-mark[data-provider]::before,
.wswa-provider-mark[data-provider]::after {
    position: absolute;
    pointer-events: none;
}

/* Apple TV */
.wswa-provider-mark[data-provider="apple-tv"] {
    border: 1px solid rgba(210, 218, 255, .25);
    background: radial-gradient(circle at 30% 15%, #454958, transparent 55%),
                linear-gradient(145deg, #20232d, #08090d 75%);
}

.wswa-provider-mark[data-provider="apple-tv"]::before {
    content: "tv";
    color: #fff;
    font: 700 21px/.9 Arial, sans-serif;
    letter-spacing: -1.5px;
    text-shadow: 0 0 12px rgba(180, 190, 255, .4);
}

.wswa-provider-mark[data-provider="apple-tv"]::after {
    content: "+";
    top: 8px;
    right: 8px;
    color: #c8d2ff;
    font: 700 9px/1 Arial, sans-serif;
}

/* Crunchyroll */
.wswa-provider-mark[data-provider="crunchyroll"] {
    border: 1px solid rgba(255, 130, 0, .35);
    background: radial-gradient(circle at 50% 45%, #352014, #111116 72%);
}

.wswa-provider-mark[data-provider="crunchyroll"]::before {
    content: "";
    width: 23px;
    height: 23px;
    border: 3px solid #ff8500;
    border-right-color: transparent;
    border-radius: 50%;
    transform: rotate(-35deg);
    box-shadow: 0 0 12px rgba(255, 133, 0, .25);
}

.wswa-provider-mark[data-provider="crunchyroll"]::after {
    content: "";
    top: 12px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff9a24;
    box-shadow: 0 0 8px rgba(255, 154, 36, .55);
}

/* Prime Video */
.wswa-provider-mark[data-provider="prime-video"] {
    border: 1px solid rgba(0, 168, 225, .3);
    background: radial-gradient(circle at 50% 25%, #183348, #0a111a 75%);
}

.wswa-provider-mark[data-provider="prime-video"]::before {
    content: "prime";
    top: 14px;
    color: #f7fbff;
    font: 800 9px/1 Arial, sans-serif;
    letter-spacing: -.5px;
}

.wswa-provider-mark[data-provider="prime-video"]::after {
    content: "";
    right: 9px;
    bottom: 10px;
    width: 22px;
    height: 7px;
    border-bottom: 2px solid #22b8ed;
    border-radius: 50%;
    transform: rotate(-12deg);
    filter: drop-shadow(0 0 3px rgba(34, 184, 237, .5));
}

/* Shahid */
.wswa-provider-mark[data-provider="shahid"] {
    border: 1px solid rgba(62, 205, 153, .35);
    background: radial-gradient(circle at 50% 20%, #21483e, #0b1715 78%);
}

.wswa-provider-mark[data-provider="shahid"]::before {
    content: "\0634\0627\0647\062f";
    color: #fff;
    direction: rtl;
    font: 900 12px/1 Arial, sans-serif;
    text-shadow: 0 0 10px rgba(67, 218, 164, .45);
}

.wswa-provider-mark[data-provider="shahid"]::after {
    content: "";
    bottom: 10px;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #5ce0ac, #d1b15e);
    box-shadow: 0 0 8px rgba(92, 224, 172, .4);
}

/* Disney+ */
.wswa-provider-mark[data-provider="disney-plus"] {
    border: 1px solid rgba(73, 163, 255, .35);
    background: radial-gradient(circle at 50% 15%, #172d59, #090e1b 78%);
}

.wswa-provider-mark[data-provider="disney-plus"]::before {
    content: "Disney+";
    top: 21px;
    color: #fff;
    font: italic 700 9px/1 Georgia, serif;
    letter-spacing: -.5px;
    text-shadow: 0 0 8px rgba(75, 166, 255, .55);
}

.wswa-provider-mark[data-provider="disney-plus"]::after {
    content: "";
    top: 8px;
    width: 27px;
    height: 15px;
    border-top: 1.5px solid #55baff;
    border-radius: 50% 50% 0 0;
    transform: rotate(-7deg);
    filter: drop-shadow(0 0 3px rgba(85, 186, 255, .55));
}

/* Amazon Video */
.wswa-provider-mark[data-provider="amazon-video"] {
    border: 1px solid rgba(255, 170, 55, .3);
    background: radial-gradient(circle at 50% 20%, #30323a, #101116 78%);
}

.wswa-provider-mark[data-provider="amazon-video"]::before {
    content: "amazon";
    top: 12px;
    color: #fff;
    font: 800 9px/1 Arial, sans-serif;
    letter-spacing: -.5px;
}

.wswa-provider-mark[data-provider="amazon-video"]::after {
    content: "video";
    top: 23px;
    padding-bottom: 3px;
    color: #e9f5ff;
    font: 700 7px/1 Arial, sans-serif;
    background: linear-gradient(90deg, transparent, #f4a340, transparent)
                center bottom / 23px 2px no-repeat;
}

@media (max-width: 559px) {
    .wswa-provider-mark[data-provider] {
        flex-basis: 36px;
        width: 36px;
        height: 40px;
        border-radius: 9px;
    }
}

@media (max-width: 350px) {
    .wswa-provider-mark[data-provider] {
        flex-basis: 32px;
        width: 32px;
        height: 36px;
        border-radius: 8px;
    }
}

/* ─── ميزان الإيجابيات/السلبيات ─── */
.vs-wrap {
    position: relative;
    z-index: 2;
}

.vs-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 20px;
}

.vs-divider {
    background: linear-gradient(180deg, transparent, var(--v-glow), transparent);
}

.vs-col h3 {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: .12em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vs-col.pos h3 {
    color: #22e0a0;
}

.vs-col.neg h3 {
    color: #f0546a;
    justify-content: flex-end;
}

.vs-item {
    margin-bottom: 13px;
}

.vs-col.pos .vs-item {
    padding-right: 13px;
    position: relative;
}

.vs-col.neg .vs-item {
    padding-left: 13px;
    position: relative;
    text-align: right;
}

.vs-marker {
    position: absolute;
    top: 5px;
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
}

.vs-col.pos .vs-marker {
    right: 0;
    background: #22e0a0;
}

.vs-col.neg .vs-marker {
    left: 0;
    background: #f0546a;
}

.vs-item p {
    font-size: 12px;
    line-height: 1.8;
    color: #c4cad9;
}

.vs-weight {
    height: 3px;
    border-radius: 2px;
    margin-top: 6px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.vs-weight span {
    display: block;
    height: 100%;
    border-radius: 2px;
}

.vs-col.pos .vs-weight span {
    background: #22e0a0;
}

.vs-col.neg .vs-weight span {
    background: #f0546a;
    margin-left: auto;
}

/* ─── إطار سينمائي للتريلر ─── */
.cine-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    z-index: 2;
    cursor: pointer;
}

.cine-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75) brightness(.65);
    transition: filter .4s;
}

.cine-frame:hover .cine-thumb {
    filter: saturate(1) brightness(.8);
}

.cine-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    z-index: 3;
    pointer-events: none;
    border: none;
}

.cine-corner.tl {
    top: 14px;
    left: 14px;
    border-top: 2px solid var(--v-accent);
    border-right: 2px solid var(--v-accent);
}

.cine-corner.tr {
    top: 14px;
    right: 14px;
    border-top: 2px solid var(--v-accent);
    border-left: 2px solid var(--v-accent);
}

.cine-corner.bl {
    bottom: 14px;
    left: 14px;
    border-bottom: 2px solid var(--v-accent);
    border-right: 2px solid var(--v-accent);
}

.cine-corner.br {
    bottom: 14px;
    right: 14px;
    border-bottom: 2px solid var(--v-accent);
    border-left: 2px solid var(--v-accent);
}

.cine-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--v-accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
}

.cine-play svg {
    width: 20px;
    height: 20px;
    fill: #060810;
    margin-right: -3px;
}

.cine-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1.5px solid var(--v-accent);
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: ping 2.2s ease-out infinite;
}

.cine-ping.d2 {
    animation-delay: 1.1s;
}

@keyframes ping {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.9);
        opacity: 0;
    }
}

.cine-tag {
    position: absolute;
    top: 14px;
    right: 50px;
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--v-accent);
    background: rgba(0, 0, 0, .55);
    padding: 4px 9px;
    border-radius: 6px;
    z-index: 3;
    max-width: calc(100% - 82px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cine-frame.playing .cine-play,
.cine-frame.playing .cine-ping,
.cine-frame.playing .cine-corner,
.cine-frame.playing .cine-tag,
.cine-frame.playing .cine-thumb {
    display: none;
}

.cine-frame iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 112%;
    height: 112%;
    transform: translate(-50%, -50%);
    border: none;
    z-index: 5;
}

/* ══════════════════════════════════════════════════════════════
   ملفّات الحلقات — لصنّاع المحتوى (Creator Toolkit)
   ══════════════════════════════════════════════════════════════ */
.creator-explainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.ce-step {
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.ce-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--v-accent);
    color: #060810;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ce-step p {
    font-size: 11px;
    color: var(--text-mid);
    line-height: 1.7;
}

@media (max-width:640px) {
    .creator-explainer {
        grid-template-columns: 1fr;
    }
}

.case-file {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .02);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: border-color .25s;
}

.case-file:hover {
    border-color: var(--v-glow);
}

.case-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
}

.case-index {
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 700;
    color: var(--v-accent);
    opacity: .55;
    min-width: 32px;
    transition: opacity .25s;
}

.case-file:hover .case-index {
    opacity: 1;
}

.case-head-body {
    flex: 1;
}

.case-head-body h4 {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-hi);
    margin-bottom: 3px;
}

.ep-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.ep-airdate {
    font-family: var(--font-ui);
    font-size: 9.5px;
    color: var(--text-dim);
    letter-spacing: .02em;
    direction: ltr;
    unicode-bidi: isolate;
}

.case-status {
    display: flex;
    gap: 5px;
}

/* ─── طيّ/عرض بقية الحلقات — تظهر أول حلقتين افتراضياً ─── */
.episodes-toggle-wrap {
    text-align: center;
    margin: 6px 0 24px;
    position: relative;
    z-index: 2;
}

.episodes-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: auto;
    padding: 12px 22px;
}

.episodes-toggle-btn .etb-chevron {
    width: 13px;
    height: 13px;
    stroke: #060810;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.episodes-toggle-btn[aria-expanded="true"] .etb-chevron {
    transform: rotate(180deg);
}

.episodes-extra {
    display: none;
}

.episodes-extra.expanded {
    display: block;
    animation: episodesReveal .55s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes episodesReveal {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-status .lamp {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.case-status .lamp.on-v {
    background: #f0546a;
    box-shadow: 0 0 6px #f0546a;
}

.case-status .lamp.on-s {
    background: var(--v-accent);
    box-shadow: 0 0 6px var(--v-glow);
}

.case-chevron {
    font-size: 11px;
    color: var(--text-dim);
    transition: transform .3s;
}

.case-file.open .case-chevron {
    transform: rotate(180deg);
    color: var(--v-accent);
}

.case-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.2, .8, .2, 1);
}

.case-file.open .case-detail {
    max-height: min(70dvh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Keep expanded creator-toolkit text in the document flow so the page scrolls through the full synopsis. */
.case-file.open .case-detail {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
    transition: none;
}

html:not(.ws-disclosures-ready) .case-file.open .case-detail,
html:not(.ws-disclosures-ready) .faq-item.open .faq-a {
    max-height: 0 !important;
}

.case-head:focus-visible,
.faq-q:focus-visible {
    outline: 2px solid var(--v-accent);
    outline-offset: -2px;
}

.case-detail-inner {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border-soft);
    padding-top: 12px;
    margin: 0 16px;
}

.case-detail-inner>p.case-synopsis {
    font-size: 11.5px;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 10px;
}

.case-warn,
.case-tip {
    display: flex;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.75;
}

.case-warn {
    background: rgba(240, 84, 106, .07);
    border: 1px solid rgba(240, 84, 106, .2);
    color: #e8b0b8;
}

.case-tip {
    background: rgba(196, 163, 90, .08);
    border: 1px solid rgba(196, 163, 90, .25);
    color: var(--gold-light);
}

.case-clear {
    display: flex;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.75;
    background: rgba(34, 224, 160, .07);
    border: 1px solid rgba(34, 224, 160, .22);
    color: #a8e6cf;
}

.case-warn .cw-icon,
.case-tip .ct-icon,
.case-clear .cc-icon {
    flex-shrink: 0;
    font-size: 13px;
}

.case-warn strong,
.case-tip strong {
    color: #fff;
}

.case-scan {
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--v-glow), transparent);
    opacity: 0;
    pointer-events: none;
}

.case-file.scanning .case-scan {
    animation: caseScan .6s ease-out;
}

@keyframes caseScan {
    0% {
        right: -100%;
        opacity: .8;
    }

    100% {
        right: 100%;
        opacity: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   الأسئلة الشائعة — لمحرّكات البحث ولزوّار الصفحة (FAQ Accordion)
   ══════════════════════════════════════════════════════════════ */
.faq-item {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .02);
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: border-color .25s;
}

.faq-item:hover {
    border-color: var(--v-glow);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
}

.faq-q h3 {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-hi);
}

.faq-q .faq-chevron {
    font-size: 11px;
    color: var(--text-dim);
    transition: transform .3s;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--v-accent);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.2, .8, .2, 1);
}

.faq-item.open .faq-a {
    max-height: min(65dvh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.audit-grid[id],
.vs-wrap[id],
.cine-frame[id],
.case-file[id],
.faq-item[id],
.signal-grid[id] {
    scroll-margin-top: 96px;
}

.faq-a p {
    padding: 0 18px 17px;
    font-size: 12.5px;
    color: var(--text-mid);
    line-height: 1.95;
}

/* ══════════════════════════════════════════════════════════════
   أعمال مشابهة — بوسترات بعرض متراكب (Poster Overlay)
   ══════════════════════════════════════════════════════════════ */
.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    position: relative;
    z-index: 2;
}

.signal-poster {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2/3;
    border: 1px solid var(--border-soft);
    transition: transform .3s, border-color .3s;
}

.signal-poster:hover {
    transform: translateY(-6px);
    border-color: var(--v-glow);
}

.signal-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.8) brightness(.6);
    transition: filter .35s, transform .5s;
}

.signal-poster:hover img {
    filter: saturate(1) brightness(.72);
    transform: scale(1.06);
}

/* بديل بدون صورة خارجية — لوحة لونية أصلية + أيقونة SVG مرسومة يدوياً */
.signal-poster-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .5s;
}

.signal-poster:hover .signal-poster-art {
    transform: scale(1.08);
}

.signal-poster-art svg {
    width: 42%;
    height: 42%;
    opacity: .9;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .55));
}

.signal-poster.bc .signal-poster-art {
    background: radial-gradient(circle at 50% 35%, #241338, #0c0714 75%);
}

.signal-poster.ms .signal-poster-art {
    background: radial-gradient(circle at 50% 35%, #33230a, #140d07 75%);
}

.signal-poster.ds .signal-poster-art {
    background: radial-gradient(circle at 50% 35%, #0d2622, #070e0d 75%);
}

.signal-poster-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(6, 8, 16, .95) 100%);
}

.signal-poster-match {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(6, 8, 16, .6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--v-glow);
    color: var(--v-accent);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.signal-poster-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 12px;
    z-index: 2;
}

.signal-poster-info h4 {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}

.signal-poster-info p {
    font-size: 10.5px;
    color: #b8bfcf;
    line-height: 1.65;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .3s, max-height .3s;
}

.signal-poster:hover .signal-poster-info p {
    opacity: 1;
    max-height: 70px;
    margin-top: 4px;
}

@media (max-width:640px) {

    .vs-grid {
        grid-template-columns: 1fr;
    }

    .vs-divider {
        display: none;
    }

    .vs-col.neg h3 {
        justify-content: flex-start;
    }

    .vs-col.neg .vs-item {
        text-align: right;
        padding-left: 0;
        padding-right: 13px;
    }

    .vs-col.neg .vs-marker {
        right: 0;
        left: auto;
    }

    .vs-col.neg .vs-weight span {
        margin-left: 0;
    }

    .signal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── أزرار ─── */
.v-btn {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 12px 26px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--v-accent), var(--v-accent-dim));
    color: #060810;
    box-shadow: 0 10px 26px -8px var(--v-glow);
    transition: transform .18s, box-shadow .18s;
    position: relative;
    z-index: 2;
}

.v-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px var(--v-glow);
}

/* ─── قسم السيناريو البديل ─── */
.ai-badge-f {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(196, 163, 90, .1);
    border: 1px solid rgba(196, 163, 90, .3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.v-textarea {
    width: 100%;
    min-height: 90px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px;
    color: #eee;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    resize: vertical;
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
}

.v-textarea:focus {
    outline: none;
    border-color: var(--v-glow);
}

/* ══════════════════════════════════════════════════════════════
   الفوتر — لوحة ختامية شاملة (Command Deck Footer)
   ══════════════════════════════════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 2;
    margin-top: 44px;
    border-top: 1px solid var(--border-soft);
    background:
        radial-gradient(ellipse 800px 300px at 50% 0%, var(--v-glow), transparent 70%),
        var(--panel);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.footer-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.35fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-soft);
}

.footer-brand-mark {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
}

.footer-brand-mark svg {
    width: 27px;
    height: 27px;
    filter: drop-shadow(0 0 6px var(--brand-red-glow));
}

.footer-brand-mark span {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: .1em;
    color: var(--brand-red);
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.95;
    max-width: 280px;
    margin-bottom: 18px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-ui);
    font-size: 9.5px;
    letter-spacing: .08em;
    color: var(--text-dim);
    border: 1px solid var(--border-soft);
    padding: 6px 11px;
    border-radius: 20px;
}

.footer-badge .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22e0a0;
    box-shadow: 0 0 6px #22e0a0;
}

.footer-col h3 {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--v-accent);
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 12.5px;
    color: var(--text-mid);
    text-decoration: none;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--v-accent);
    transition: width .2s;
}

.footer-links a:hover {
    color: var(--text-hi);
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-soft);
    color: var(--text-mid);
    transition: all .25s;
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-social a:hover {
    color: #060810;
    background: var(--v-accent);
    border-color: var(--v-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -8px var(--v-glow);
}

.footer-contact p.body-text {
    font-size: 12px;
    color: var(--text-mid);
    margin-bottom: 15px;
    line-height: 1.85;
}

.f-input-group {
    position: relative;
    margin-bottom: 11px;
}

.f-input-group input,
.f-input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 13px 40px 13px 14px;
    color: #eee;
    font-family: 'Tajawal', sans-serif;
    font-size: 12.5px;
    transition: border-color .2s;
}

.f-input-group textarea {
    min-height: 72px;
    resize: vertical;
    padding-top: 11px;
}

.f-input-group input:focus,
.f-input-group textarea:focus {
    outline: none;
    border-color: var(--v-glow);
}

.f-input-group svg {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 15px;
    height: 15px;
    stroke: var(--text-dim);
    fill: none;
    pointer-events: none;
}

.footer-contact .v-btn {
    width: 100%;
    font-size: 12.5px;
    padding: 12px;
    text-align: center;
}

.f-response {
    font-size: 11.5px;
    margin-top: 10px;
    min-height: 14px;
    color: var(--gold-light);
}

.f-response.err {
    color: #f0546a;
}

.footer-bottom {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 11px;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .2s;
}

.footer-legal a:hover {
    color: var(--text-mid);
}

.footer-top-link {
    font-size: 11px;
    color: var(--v-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

@media (max-width:900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 36px;
    }
}

@media (max-width:640px) {
    .footer-inner {
        padding: 44px 18px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: right;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   WATCHSCOPE — Audience Rating + Comments
   ========================================================= */
.ws-comments-section {
    margin: 70px auto 40px;
    padding: 28px;
    border-radius: 22px;
    background: #101216;
    border: 1px solid rgba(255, 255, 255, .06);
    color: #f3f0e8;
}

.ws-comments-header {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-end;
}

.ws-comments-lead {
    color: #8d9199;
    line-height: 1.8;
    margin: 8px 0 0;
}

.ws-community-score {
    min-width: 190px;
    text-align: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: #0b0c0f;
    border: 1px solid rgba(255, 255, 255, .05);
}

.ws-community-score-value {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
}

.ws-community-score-stars {
    margin-top: 9px;
    color: #c9a86a;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
}

.ws-community-score-count {
    margin-top: 7px;
    font-size: 12px;
    color: #8d9199;
}

.ws-comments-account {
    margin-top: 22px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    background: #111318;
}

.ws-account-state {
    color: #8d9199;
    font-size: 13px;
}

.ws-auth-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ws-outline-btn,
.ws-gold-btn,
.ws-text-btn,
.ws-sort-tabs button,
.ws-more-btn,
.ws-comment-action {
    font: inherit;
    cursor: pointer;
}

.ws-outline-btn,
.ws-gold-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 11px;
}

.ws-outline-btn {
    background: transparent;
    color: #f3f0e8;
    border: 1px solid rgba(255, 255, 255, .09);
}

.ws-gold-btn {
    background: rgba(201, 168, 106, .10);
    color: #f3f0e8;
    border: 1px solid rgba(201, 168, 106, .35);
}

.ws-full-btn {
    width: 100%;
}

.ws-text-btn {
    border: 0;
    background: none;
    color: #8d9199;
    padding: 10px 0;
}

.ws-comment-composer {
    margin-top: 18px;
    padding: 22px;
    border-radius: 18px;
    background: #0b0c0f;
    border: 1px solid rgba(255, 255, 255, .06);
}

.ws-composer-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.ws-composer-head strong {
    display: block;
    font-size: 16px;
}

.ws-composer-head span {
    display: block;
    color: #8d9199;
    font-size: 12px;
    margin-top: 5px;
}

.ws-user-rating-value {
    color: #c9a86a;
    font-weight: 800;
    cursor: pointer;
}

.ws-star-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 18px;
    direction: rtl;
}

.ws-star-picker button {
    width: 32px;
    height: 34px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #575b63;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.ws-star-picker button:hover,
.ws-star-picker button.active {
    color: #c9a86a;
}

.ws-star-picker button small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ws-star-helper {
    margin-top: 6px;
    color: #8d9199;
    font-size: 12px;
}

.ws-comment-name,
.ws-comment-composer textarea {
    width: 100%;
    box-sizing: border-box;
    background: #101216;
    color: #f3f0e8;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    outline: 0;
}

.ws-comment-name {
    height: 46px;
    margin-top: 14px;
    padding: 0 14px;
}

.ws-comment-composer textarea {
    margin-top: 12px;
    min-height: 125px;
    padding: 14px;
    resize: vertical;
    line-height: 1.8;
}

.ws-comment-name:focus,
.ws-comment-composer textarea:focus {
    border-color: rgba(201, 168, 106, .45);
}

.ws-composer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

#ws-comment-counter {
    color: #8d9199;
    font-size: 11px;
}

.ws-form-message {
    min-height: 18px;
    margin-top: 10px;
    color: #8d9199;
    font-size: 12px;
}

.ws-form-message[data-error="1"] {
    color: #d88989;
}

.ws-auth-prompt {
    margin-top: 18px;
    padding: 20px;
    border-radius: 18px;
    background: #111318;
    border: 1px solid rgba(255, 255, 255, .06);
}

.ws-auth-prompt p {
    color: #8d9199;
    line-height: 1.8;
    margin: 7px 0 14px;
}

.ws-comments-controls {
    margin-top: 30px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.ws-sort-tabs {
    display: flex;
    gap: 4px;
}

.ws-sort-tabs button {
    border: 0;
    background: none;
    color: #8d9199;
    padding: 8px 10px;
    border-bottom: 2px solid transparent;
}

.ws-sort-tabs button.active {
    color: #f3f0e8;
    border-bottom-color: #c9a86a;
}

.ws-comments-list {
    display: grid;
    gap: 12px;
}

.ws-comment {
    padding: 18px;
    background: #111318;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
}

.ws-comment-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}

.ws-comment-author {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ws-comment-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0b0c0f;
    color: #c9a86a;
    font-weight: 800;
}

.ws-comment-author strong {
    display: block;
}

.ws-comment-date {
    display: block;
    color: #8d9199;
    font-size: 11px;
    margin-top: 3px;
}

.ws-comment-rating {
    color: #c9a86a;
    font-size: 12px;
    white-space: nowrap;
}

.ws-comment-body-text {
    margin: 14px 0 0;
    color: #d9d6cf;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ws-comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.ws-comment-action {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: #0b0c0f;
    color: #8d9199;
    border-radius: 9px;
    padding: 0 10px;
}

.ws-comment-action.liked {
    color: #c9a86a;
    border-color: rgba(201, 168, 106, .3);
}

.ws-more-btn {
    display: block;
    margin: 18px auto 0;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 11px;
    background: #111318;
    color: #f3f0e8;
}

.ws-auth-dialog {
    width: min(460px, calc(100% - 24px));
    border: 1px solid rgba(255, 255, 255, .10);
    background: #101216;
    color: #f3f0e8;
    border-radius: 20px;
    padding: 0;
}

.ws-auth-dialog::backdrop {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(5px);
}

.ws-auth-dialog-inner {
    position: relative;
    padding: 26px;
}

.ws-auth-dialog-inner h3 {
    margin: 9px 0 6px;
    font-size: 26px;
}

.ws-auth-dialog-inner>p {
    margin: 0 0 18px;
    color: #8d9199;
    line-height: 1.8;
}

.ws-auth-dialog-inner label {
    display: block;
    margin-top: 13px;
    color: #b9bbc0;
    font-size: 12px;
}

.ws-auth-dialog-inner input {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    margin-top: 7px;
    padding: 0 12px;
    border-radius: 11px;
    background: #0b0c0f;
    color: #f3f0e8;
    border: 1px solid rgba(255, 255, 255, .07);
}

.ws-dialog-close {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 35px;
    height: 35px;
    border: 0;
    background: transparent;
    color: #8d9199;
    font-size: 25px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .ws-comments-section {
        margin: 48px auto 24px;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .ws-comments-header {
        display: block;
    }

    .ws-community-score {
        margin-top: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .ws-comments-account {
        display: block;
    }

    .ws-auth-actions {
        margin-top: 10px;
    }

    .ws-composer-head {
        display: block;
    }

    .ws-user-rating-value {
        margin-top: 8px;
        display: inline-block;
    }

    .ws-star-picker {
        gap: 1px;
    }

    .ws-star-picker button {
        width: 30px;
    }

    .ws-comments-controls {
        display: block;
    }

    .ws-sort-tabs {
        margin-top: 9px;
    }

    .ws-comment-top {
        display: block;
    }

    .ws-comment-rating {
        display: block;
        margin-top: 9px;
    }

    .ws-composer-bottom {
        align-items: flex-start;
    }
}

/* Watchscope rating — 10-point star presentation */
.rating-meter {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px !important;
    align-items: center;
    justify-content: center;
    padding: 4px 0 2px !important;
    min-height: 48px !important;
}

.rating-meter button {
    width: 32px !important;
    height: 38px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #545860 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1 !important;
    transform: none !important;
}

.rating-meter button span {
    position: static !important;
    width: auto !important;
    height: auto !important;
    font-size: 24px !important;
    line-height: 1 !important;
    color: inherit !important;
    transform: none !important;
}

.rating-meter button small {
    display: none !important;
}

.rating-meter button:hover,
.rating-meter button.preview,
.rating-meter button.filled,
.rating-meter button.user-pick {
    color: #c9a86a !important;
}

.rating-meter button.user-pick {
    filter: drop-shadow(0 0 5px rgba(201, 168, 106, .18));
}

.rating-meter button:focus-visible {
    outline: 2px solid rgba(201, 168, 106, .55);
    outline-offset: 2px;
}

/* Keep all ten rating choices on one evenly spaced row at phone widths. */
.rating-meter {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    width: 100%;
    max-width: 460px;
    gap: clamp(0px, 1vw, 4px) !important;
    align-items: center;
}

.rating-meter button {
    box-sizing: border-box;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch;
}

@media (max-width: 520px) {
    .rating-meter {
        gap: 2px !important;
    }

    .rating-meter button {
        width: 28px !important;
        min-width: 28px !important;
    }

    .rating-meter button span {
        font-size: 21px !important;
    }
}

/* ══════════════════════════════════════════════
   WATCHSCOPE COMMENTS — FINAL VISIBILITY PASS
══════════════════════════════════════════════ */
.ws-comments-section {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    content-visibility: auto;
    contain-intrinsic-size: 760px;
}

.ws-comments-section .ws-gold-btn,
.ws-comments-section .ws-outline-btn {
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.ws-comments-section .ws-gold-btn:hover,
.ws-comments-section .ws-outline-btn:hover {
    transform: translateY(-1px);
}

.ws-comments-list {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.ws-comment {
    overflow-wrap: anywhere;
}

.ws-auth-dialog {
    max-height: min(90vh, 680px);
    overflow: auto;
}

.page>.glass-card:not(.rating-card) {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
}

@media (max-width:700px) {
    .ws-comments-section {
        scroll-margin-top: 110px;
    }

    .ws-comments-account,
    .ws-comment-composer,
    .ws-auth-prompt {
        box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
    }

    .ws-star-picker {
        justify-content: space-between;
    }

    .ws-star-picker button {
        width: 28px;
        min-width: 28px;
        font-size: 20px;
    }

    .ws-composer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-composer-bottom .ws-gold-btn {
        width: 100%;
    }
}

/* Compact frosted-glass ad banner; overrides the older page-specific sizing above. */
.ws-site-ad-space {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: min(420px, calc(100% - 24px));
    min-height: 30px;
    margin: 0 auto 3px;
    padding: 1px 8px;
    color: #f3f0e8;
    background: rgba(17, 19, 24, .54);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255, 255, 255, .035);
    overflow: hidden;
}

.ws-site-ad-space--work,
.ws-site-ad-space--about {
    margin-top: calc(64px + env(safe-area-inset-top, 0px));
}

.ws-site-ad-space__heading {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    min-height: 0;
    color: rgba(243, 240, 232, .88);
    font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ws-site-ad-space__mark {
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 168, 106, .38);
    border-radius: 4px;
    background: rgba(201, 168, 106, .1);
    color: #d8ba82;
    font-size: 6px;
    font-weight: 800;
}

.ws-site-ad-space__unit {
    min-height: 50px;
    display: grid;
    place-items: center;
    padding: 4px 0;
}

.ws-site-ad-space__unit ins.adsbygoogle {
    width: 100%;
}

.ws-site-ad-space__contact-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 0;
    border-top: 0;
    color: rgba(243, 240, 232, .7);
    font: 500 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
    white-space: nowrap;
}

.ws-site-ad-space__contact {
    color: #d8ba82;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(201, 168, 106, .25);
    border-radius: 6px;
    padding: 1px 5px;
    background: rgba(201, 168, 106, .08);
}

.ws-site-ad-space__contact:focus-visible {
    outline: 2px solid #d8ba82;
    outline-offset: 3px;
}

.ws-site-ad-space--monetized {
    display: grid;
    grid-template-columns: 1fr auto;
}

.ws-site-ad-space--monetized .ws-site-ad-space__unit {
    grid-column: 1 / -1;
}

.ws-site-ad-space--monetized .ws-site-ad-space__contact-row {
    grid-column: 1 / -1;
    justify-content: center;
}

@media (max-width: 768px) {
    .ws-site-ad-space {
        width: min(420px, calc(100% - 20px));
        min-height: 30px;
        margin: 0 auto 2px;
        padding: 1px 7px;
        border-radius: 9px;
        gap: 6px;
    }

    .ws-site-ad-space--work,
    .ws-site-ad-space--about {
        margin-top: calc(98px + env(safe-area-inset-top, 0px));
    }

    .ws-site-ad-space__heading {
        gap: 4px;
        font-size: 13px;
    }

    .ws-site-ad-space__mark {
        width: 13px;
        height: 13px;
    }

    .ws-site-ad-space__contact-row {
        gap: 3px;
        font-size: 12px;
    }

    .ws-site-ad-space__contact {
        padding: 1px 5px;
    }
}

/* Let streaming-provider cards and their actions fit narrow website screens. */
@media (max-width:559px) {
    .wswa-section,
    .wswa-provider-card {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .wswa-provider-info,
    .wswa-provider-copy,
    .wswa-action {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }

    .wswa-provider-name-row {
        flex-wrap: wrap;
    }

    .wswa-provider-name {
        overflow-wrap: anywhere;
    }

    .wswa-action,
    .wswa-watch-link {
        width: 100%;
    }

    .wswa-watch-link {
        box-sizing: border-box;
        min-width: 0;
        white-space: normal;
        line-height: 1.35;
        text-align: center;
    }
}
