/* Cliff Movies v3.3.0 — cookie banner, connect section, trust badges, share UI.
   Additive only. No layout shift (CLS): banner is fixed-position and starts
   hidden; connect/trust blocks reserve their own space in normal flow. */

/* ── "Connect With Cliff Movies" (immediately above the footer) ───────── */
.cm-connect {
    background: #0d0d0d;
    border-top: 1px solid #1e1e1e;
    padding: 44px 4% 40px;
}
.cm-connect-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.cm-connect-title {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}
.cm-connect-sub {
    margin: 0 auto 24px;
    max-width: 620px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}
.cm-connect-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.cm-connect-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    background: #151515;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.cm-connect-link:hover,
.cm-connect-link:focus-visible {
    transform: translateY(-2px);
    border-color: #e50914;
    background: #1c1c1c;
    outline: none;
}
.cm-connect-link:focus-visible { box-shadow: 0 0 0 2px #e50914; }
.cm-connect-facebook:hover  { border-color: #1877f2; }
.cm-connect-instagram:hover { border-color: #e1306c; }
.cm-connect-youtube:hover   { border-color: #ff0000; }
.cm-connect-telegram:hover  { border-color: #29a9eb; }
.cm-connect-twitter:hover   { border-color: #fff; }

/* ── Trust badges (below existing footer content) ─────────────────────── */
.cm-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    padding: 16px 4% 22px;
    background: #000;
    border-top: 1px solid #161616;
}
.cm-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, 0.55);
}
.cm-trust-item svg { color: #2ecc71; flex: 0 0 auto; }

/* ── Cookie consent banner ────────────────────────────────────────────── */
.cm-cookie {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(8px);
    z-index: 9998;                 /* below modals, above content */
    width: min(680px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .28s ease, transform .28s ease;
}
.cm-cookie[hidden] { display: none; }
.cm-cookie.cm-cookie-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.cm-cookie-text {
    flex: 1;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}
.cm-cookie-text a { color: #e50914; text-decoration: underline; }
.cm-cookie-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cm-cookie-accept {
    padding: 9px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--cm-cookie-accent, #e50914);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.cm-cookie-accept:hover { background: #ff1420; transform: scale(1.03); }
.cm-cookie-accept:focus-visible,
.cm-cookie-reject:focus-visible,
.cm-cookie-learn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cm-cookie-reject {
    padding: 9px 16px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.cm-cookie-reject:hover { border-color: #666; color: #fff; }
.cm-cookie-learn {
    padding: 9px 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}
.cm-cookie-learn:hover { color: #fff; }
@media (max-width: 600px) {
    .cm-cookie { flex-direction: column; align-items: stretch; text-align: center; }
    .cm-cookie-actions { justify-content: center; }
}

/* ── Share button + menu ──────────────────────────────────────────────── */
.cm-share { position: relative; display: inline-block; }
.cm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(40, 40, 40, 0.75);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.cm-share-btn:hover { background: rgba(70, 70, 70, 0.9); border-color: #fff; }
.cm-share-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.cm-share-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    z-index: 60;
    min-width: 210px;
    padding: 6px;
    background: #171717;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .65);
}
.cm-share-menu[hidden] { display: none; }
.cm-share-opt {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font-size: 0.87rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease;
}
.cm-share-opt:hover { background: #262626; }
.cm-share-opt:focus-visible { outline: 2px solid #e50914; outline-offset: -2px; }
.cm-share-opt svg { flex: 0 0 auto; opacity: .9; }

/* Copy confirmation toast (no layout shift — fixed) */
.cm-share-copied {
    position: fixed;
    left: 50%; bottom: 90px;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 10px 18px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.cm-share-copied.cm-visible { opacity: 1; }

@media (max-width: 600px) {
    .cm-share-menu { left: auto; right: 0; }
}

/* v3.4.1: keep the hero Share button visually consistent with the hero
   action buttons (Play / Trailer / More Info) without touching style.css. */
.cm-hero-buttons .cm-share { display: inline-flex; align-items: center; }
.cm-hero-buttons .cm-share-btn {
    padding: 12px 22px;
    font-size: 0.95rem;
}

/* ── v3.4.3: compact card share ───────────────────────────────────────── */
.cm-card-share { z-index: 4; transition: transform .2s ease; }
.cm-card:hover .cm-share-btn-compact,
.cm-card-share:focus-within .cm-share-btn-compact { transform: scale(1.12); }

.cm-share-btn-compact {
    width: 30px; height: 30px;
    padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    /* Translucent blurred chip → legible on both bright and dark posters. */
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cm-share-btn-compact:hover { background: rgba(0, 0, 0, 0.72); border-color: rgba(255, 255, 255, 0.6); }
.cm-share-btn-compact:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.cm-share-compact { position: relative; }
.cm-share-compact .cm-share-menu {
    bottom: auto;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
}


/* ── v3.4.5: Share button inside the trailer player (bottom-right) ─────── */
.cm-preview-container { position: relative; }
.cm-preview-share {
    position: absolute;
    right: 12px;
    bottom: 64px;   /* clear of the control bar at the very bottom */
    z-index: 8;
}
.cm-preview-share .cm-share-menu {
    bottom: calc(100% + 8px);
    top: auto;
    right: 0;
    left: auto;
}
@media (max-width: 600px) {
    .cm-preview-share { bottom: 58px; right: 8px; }
}
