#orca-consent-modal,
.orca-consent-modal {
  display: none !important;
}

/* ── Cinema theme tokens ───────────────────────────────────────────── */
:root {
  --eksneks-toro-red: #E50914;
  --eksneks-toro-red-deep: #B20710;
  --eksneks-amber: #FFB72B;
  --eksneks-dialog: #111111;
  --eksneks-dialog-edge: #1f1f1f;
  --eksneks-ink: #f4f1ec;
  --eksneks-ink-soft: #b9b3aa;
}

/* ── Modal shell = dim cinema backdrop ─────────────────────────────── */
.eksneks-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 0%, rgba(20, 0, 2, 0.72) 0%, rgba(0, 0, 0, 0.82) 60%, rgba(0, 0, 0, 0.9) 100%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.orca-consent-decision-required,
.eksneks-consent-gate-active {
  overflow: hidden;
}

body.orca-consent-decision-required > :not(#eksneks-consent-modal):not(script):not(style),
body.eksneks-consent-gate-active > :not(#eksneks-consent-modal):not(script):not(style) {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.eksneks-consent-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Mandatory gate: full opaque blackout, no peeking at the page */
.eksneks-consent-modal.is-mandatory {
  background: radial-gradient(120% 120% at 50% 0%, rgba(28, 0, 3, 0.97) 0%, #000000 70%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Legacy backdrop node, if ever present */
.eksneks-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

/* ── Dialog : dark cinema card ─────────────────────────────────────── */
.eksneks-consent-modal__dialog {
  position: relative;
  width: min(100%, 40rem);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid var(--eksneks-dialog-edge);
  border-top: 3px solid var(--eksneks-toro-red);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.06) 0%, rgba(17, 17, 17, 0) 32%),
    var(--eksneks-dialog);
  color: var(--eksneks-ink);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 32px 80px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(229, 9, 20, 0.12);
  font-family: Manrope, Arial, sans-serif;
  transform: scale(0.96);
  transform-origin: center center;
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.eksneks-consent-modal.is-visible .eksneks-consent-modal__dialog {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Close ─────────────────────────────────────────────────────────── */
.eksneks-consent-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(244, 241, 236, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--eksneks-ink-soft);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.eksneks-consent-modal__close[hidden] {
  display: none;
}

@media (hover: hover) {
  .eksneks-consent-modal__close:hover {
    background: rgba(229, 9, 20, 0.16);
    border-color: rgba(229, 9, 20, 0.5);
    color: var(--eksneks-ink);
  }
}

.eksneks-consent-modal__close:focus-visible {
  outline: 2px solid var(--eksneks-amber);
  outline-offset: 2px;
  color: var(--eksneks-ink);
}

.eksneks-consent-modal__close:active {
  transform: scale(0.92);
}

/* ── Copy ──────────────────────────────────────────────────────────── */
.eksneks-consent-modal__eyebrow {
  margin: 0 0 0.7rem;
  color: var(--eksneks-amber);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eksneks-consent-modal__title {
  margin: 0;
  color: var(--eksneks-ink);
  font-family: Syne, Arial, sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.eksneks-consent-modal__description {
  max-width: 34rem;
  margin: 0.95rem 0 0;
  color: var(--eksneks-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.eksneks-consent-modal__link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--eksneks-amber);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 183, 43, 0.45);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

@media (hover: hover) {
  .eksneks-consent-modal__link:hover {
    color: #ffd27a;
    text-decoration-color: var(--eksneks-amber);
  }
}

.eksneks-consent-modal__link:focus-visible {
  outline: 2px solid var(--eksneks-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Actions ───────────────────────────────────────────────────────── */
.eksneks-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.eksneks-consent-modal__button {
  min-width: 10rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.eksneks-consent-modal__button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.eksneks-consent-modal__button:focus-visible {
  outline: 2px solid var(--eksneks-amber);
  outline-offset: 3px;
}

.eksneks-consent-modal__button:active {
  transform: scale(0.97);
}

.eksneks-consent-modal__button--primary {
  border: 2px solid var(--eksneks-toro-red);
  background: var(--eksneks-toro-red);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
}

@media (hover: hover) {
  .eksneks-consent-modal__button--primary:hover {
    border-color: var(--eksneks-toro-red-deep);
    background: var(--eksneks-toro-red-deep);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.5);
  }
}

.eksneks-consent-modal__button--secondary {
  border: 1px solid rgba(244, 241, 236, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--eksneks-ink);
}

@media (hover: hover) {
  .eksneks-consent-modal__button--secondary:hover {
    border-color: var(--eksneks-amber);
    color: var(--eksneks-amber);
    background: rgba(255, 183, 43, 0.08);
  }
}

/* ── Floating settings trigger ─────────────────────────────────────── */
.eksneks-privacy-settings {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 99990;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border: 1px solid rgba(229, 9, 20, .55); border-radius: 14px;
  background: var(--eksneks-dialog); color: var(--eksneks-amber);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4);
  font: 800 .8rem/1.2 Manrope, Arial, sans-serif; letter-spacing: .02em; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}
.eksneks-privacy-settings::before { content: "🎬"; font-size: 1rem; line-height: 1; }

@media (hover: hover) {
  .eksneks-privacy-settings:hover {
    transform: translateY(-2px); color: #ffd27a; border-color: var(--eksneks-toro-red);
    box-shadow: 0 14px 32px rgba(229, 9, 20, .35);
  }
}
.eksneks-privacy-settings:focus-visible {
  outline: 2px solid var(--eksneks-amber); outline-offset: 3px;
}

/* ── Inline "consent required" notice ──────────────────────────────── */
.eksneks-consent-required {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 183, 43, 0.4);
  border-left: 4px solid var(--eksneks-toro-red);
  border-radius: 0.75rem;
  background: #161310;
  color: var(--eksneks-ink);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.55;
}

.eksneks-consent-required strong {
  color: var(--eksneks-amber);
  letter-spacing: 0.02em;
}

.eksneks-consent-required p {
  margin: 0.45rem 0 0.85rem;
  color: var(--eksneks-ink-soft);
}

.eksneks-consent-required button {
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--eksneks-toro-red);
  border-radius: 999px;
  background: var(--eksneks-toro-red);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

@media (hover: hover) {
  .eksneks-consent-required button:hover {
    border-color: var(--eksneks-toro-red-deep);
    background: var(--eksneks-toro-red-deep);
  }
}

.eksneks-consent-required button:focus-visible {
  outline: 2px solid var(--eksneks-amber);
  outline-offset: 2px;
}

.eksneks-consent-required button:active {
  transform: scale(0.97);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .eksneks-consent-modal {
    padding: 0.75rem;
  }

  .eksneks-consent-modal__dialog {
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    border-radius: 1.1rem;
    padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
  }

  .eksneks-consent-modal__actions {
    flex-direction: column-reverse;
  }

  .eksneks-consent-modal__button {
    width: 100%;
  }

  .eksneks-privacy-settings {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

/* ── Reduced motion : fade only, no scale ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .eksneks-consent-modal,
  .eksneks-consent-modal.is-visible,
  .eksneks-consent-modal__dialog,
  .eksneks-consent-modal.is-visible .eksneks-consent-modal__dialog {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .eksneks-consent-modal__dialog {
    transform: none;
  }

  .eksneks-consent-modal.is-visible .eksneks-consent-modal__dialog {
    transform: none;
  }

  .eksneks-consent-modal__button:active,
  .eksneks-consent-modal__close:active,
  .eksneks-consent-required button:active {
    transform: none;
  }
}
