/* Cliff Movies — Casting Call (v3.3.4)
   Additive styles only. Modal is fixed-position and starts hidden, so it
   contributes no layout shift (CLS) and never affects the player or slider. */

/* ── Footer trigger button (beside Download App) ───────────────────────── */
.cm-casting-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 16px;
    max-width: 180px;
    border: 0;
    border-radius: 8px;
    /* Dark pink → golden yellow, 50/50 */
    background: linear-gradient(90deg, #c2185b 0%, #c2185b 50%, #f5b301 50%, #f5b301 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cm-casting-trigger:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 0 16px rgba(194, 24, 91, .55), 0 0 22px rgba(245, 179, 1, .35);
}
.cm-casting-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.cm-casting-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;                 /* above the cookie banner (9998) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .82);
    opacity: 0;
    transition: opacity .25s ease;
    overflow-y: auto;
}
.cm-casting-overlay[hidden] { display: none; }
.cm-casting-overlay.cm-casting-visible { opacity: 1; }

.cm-casting-box {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px 28px 24px;
    background: #131313;
    border: 1px solid #2b2b2b;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #c2185b, #f5b301) 1;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
    transform: translateY(10px) scale(.99);
    transition: transform .25s ease;
}
.cm-casting-visible .cm-casting-box { transform: translateY(0) scale(1); }

.cm-casting-x {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #333;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.cm-casting-x:hover { color: #fff; border-color: #666; }
.cm-casting-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.cm-casting-title {
    margin: 0 34px 6px 0;
    font-size: clamp(1.15rem, 3.4vw, 1.5rem);
    font-weight: 900;
    letter-spacing: -.01em;
    background: linear-gradient(90deg, #ff4d8d, #f5b301);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cm-casting-subtitle {
    margin: 0 0 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.cm-casting-body { font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.cm-casting-lead { margin: 0 0 16px; }
.cm-casting-h3 {
    margin: 18px 0 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f5b301;
}
.cm-casting-list { margin: 0; padding-left: 20px; }
.cm-casting-list li { margin-bottom: 5px; }
.cm-casting-plain { list-style: disc; }
.cm-casting-email { margin: 6px 0 0; font-size: .95rem; font-weight: 700; }
.cm-casting-email a { color: #ff4d8d; text-decoration: underline; word-break: break-word; }
.cm-casting-note {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid #242424;
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
}

/* ── Actions ───────────────────────────────────────────────────────────── */
.cm-casting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.cm-casting-apply,
.cm-casting-share,
.cm-casting-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s ease, border-color .2s ease, transform .2s ease;
}
.cm-casting-apply {
    border: 0;
    background: linear-gradient(90deg, #c2185b, #f5b301);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.cm-casting-apply:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cm-casting-share {
    border: 1px solid #3a3a3a;
    background: #1c1c1c;
    color: #fff;
}
.cm-casting-share:hover { border-color: #f5b301; }
.cm-casting-close {
    border: 1px solid #333;
    background: transparent;
    color: rgba(255, 255, 255, .75);
}
.cm-casting-close:hover { color: #fff; border-color: #666; }
.cm-casting-apply:focus-visible,
.cm-casting-share:focus-visible,
.cm-casting-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Desktop share fallback menu ───────────────────────────────────────── */
.cm-casting-share-menu {
    margin-top: 12px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 4px;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
}
.cm-casting-share-menu[hidden] { display: none; }
.cm-casting-share-opt {
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font-size: .84rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease;
}
.cm-casting-share-opt:hover { background: #292929; }
.cm-casting-share-opt:focus-visible { outline: 2px solid #f5b301; outline-offset: -2px; }

@media (max-width: 600px) {
    .cm-casting-box { padding: 26px 18px 20px; }
    .cm-casting-actions > * { flex: 1 1 100%; }
    .cm-casting-trigger { max-width: 100%; width: 100%; justify-content: center; }
}

/* ── v3.3.5 additions: hook paragraph, sign-off, full-page link, page view ── */
.cm-casting-hook {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-left: 3px solid #f5b301;
    border-radius: 0 8px 8px 0;
    background: rgba(245, 179, 1, .06);
    font-size: .93rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .88);
}
.cm-casting-list em { color: rgba(255, 255, 255, .5); font-style: normal; font-size: .85em; }
.cm-casting-sign { display: block; margin-top: 8px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.cm-casting-fees {
    margin: 10px 0 0;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: #2ecc71;
}
.cm-casting-fullpage { margin: 12px 0 0; text-align: center; }
.cm-casting-fullpage a {
    color: #f5b301;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}
.cm-casting-fullpage a:hover { text-decoration: underline; }

/* Permanent /casting-call/ page */
.cm-casting-page { padding: 48px 4% 64px; background: var(--cm-bg, #0b0b0b); }
.cm-casting-page-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 30px 28px;
    background: #131313;
    border: 1px solid #2b2b2b;
    border-radius: 14px;
}
.cm-casting-page-title { margin-right: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.cm-casting-page .cm-casting-share-menu { margin-top: 14px; }
@media (max-width: 600px) {
    .cm-casting-page-inner { padding: 24px 18px 22px; }
}

/* ── v3.3.6: top share bar + application form ─────────────────────────── */
.cm-casting-sharebar {
    margin: 0 0 22px;
    padding: 16px 18px;
    background: linear-gradient(90deg, rgba(194,24,91,.14), rgba(245,179,1,.12));
    border: 1px solid #33262c;
    border-radius: 12px;
    text-align: center;
}
.cm-casting-sharebar-text {
    margin: 0 0 12px;
    font-size: .9rem;
    line-height: 1.55;
    color: rgba(255,255,255,.85);
}
.cm-casting-sharebar-btn { display: inline-flex; }

.cm-casting-h2 {
    margin: 28px 0 6px;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 900;
    color: #fff;
}
.cm-casting-form-wrap {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #242424;
}
.cm-casting-form-intro { margin: 0 0 18px; font-size: .88rem; color: rgba(255,255,255,.62); }
.cm-req { color: #ff4d8d; }

.cm-cf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.cm-cf { display: block; margin-bottom: 14px; }
.cm-cf > span {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
}
.cm-cf > span em { font-weight: 500; font-style: normal; color: rgba(255,255,255,.45); }
.cm-cf input[type="text"],
.cm-cf input[type="email"],
.cm-cf input[type="tel"],
.cm-cf input[type="number"],
.cm-cf select,
.cm-cf textarea {
    width: 100%;
    padding: 11px 13px;
    background: #0f0f0f;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    color: #fff;
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .18s ease;
    box-sizing: border-box;
}
.cm-cf input:focus, .cm-cf select:focus, .cm-cf textarea:focus {
    outline: none;
    border-color: #f5b301;
}
.cm-cf input[type="file"] {
    width: 100%;
    padding: 9px;
    background: #0f0f0f;
    border: 1px dashed #3a3a3a;
    border-radius: 8px;
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    box-sizing: border-box;
}
.cm-cf textarea { resize: vertical; }

/* Honeypot — visually and programmatically out of the way, never display:none
   (some bots skip hidden fields; this keeps it reachable to them only). */
.cm-cf-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.cm-cf-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.cm-cf-status { font-size: .85rem; font-weight: 600; }
.cm-cf-ok    { color: #2ecc71; }
.cm-cf-error { color: #ff5a5a; }
.cm-cf-busy  { color: rgba(255,255,255,.6); }
.cm-cf-privacy { margin: 14px 0 0; font-size: .76rem; color: rgba(255,255,255,.45); }
button[disabled] { opacity: .6; cursor: not-allowed; }

@media (max-width: 600px) {
    .cm-cf-grid { grid-template-columns: 1fr; }
}

/* ── v3.4.0: application success screen ───────────────────────────────── */
.cm-casting-success {
    margin-top: 24px;
    padding: 30px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(46,204,113,.08), rgba(19,19,19,0));
    border: 1px solid #26402f;
    border-radius: 14px;
}
.cm-cs-tick { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.cm-cs-title { margin: 0 0 6px; font-size: 1.35rem; font-weight: 900; color: #fff; }
.cm-cs-msg { margin: 0 0 16px; font-size: .92rem; color: rgba(255,255,255,.75); }
.cm-cs-ref {
    display: inline-block;
    margin: 0 0 18px;
    padding: 14px 26px;
    background: #0f0f0f;
    border: 1px dashed #f5b301;
    border-radius: 12px;
}
.cm-cs-ref span {
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f5b301;
}
.cm-cs-ref strong {
    display: block;
    margin: 4px 0 2px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .06em;
    color: #fff;
}
.cm-cs-ref small { display: block; font-size: .7rem; color: rgba(255,255,255,.5); }
.cm-cs-share { margin: 0 0 12px; font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.8); }
.cm-cs-actions { display: inline-block; }

/* v3.4.2: gentle share reminder above the casting-page Share button */
.cm-casting-share-hint {
    margin: 18px 0 10px;
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .72);
}
