[data-analytics-settings] {
  box-sizing: border-box; position: fixed; z-index: 9; inset: auto 16px max(14px, env(safe-area-inset-bottom)) auto;
  max-width: min(440px, calc(100vw - 32px)); padding: 16px 18px; border: 1px solid #a0bcc6; border-radius: 14px;
  background: #fffefa; color: #173b4b; box-shadow: 0 8px 35px #153b4c2a; line-height: 1.45;
}
[data-analytics-settings][hidden] { display: none; }
[data-analytics-settings] p { margin: 6px 0 12px; font-size: 14px; }
[data-analytics-settings] a, [data-analytics-open] { text-decoration: underline; text-underline-offset: 3px; }
.analytics-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-choices button {
  min-height: 44px; border: 1px solid #9eb7bf; border-radius: 8px; padding: 6px 12px;
  background: #edf5f5; color: #173b4b; font: inherit; font-size: 14px; cursor: pointer;
}
.analytics-choices button:hover, .analytics-choices button:focus-visible { background: #dceeee; }
body:has(.cc-open, dialog[open]) [data-analytics-settings],
body:has([data-analytics-settings]:not([hidden])) :is(.rate-mobile-return,.session-countdown) { visibility: hidden; }
.analytics-privacy { padding-block: 30px; }
.analytics-privacy p { max-width: 65ch; }

@media (max-width: 760px) {
  /* Reserve a row below the 78px mobile header while the bottom consent panel is open. */
  .page-home:has([data-analytics-settings]:not([hidden])) .cinema-hero > :is(.media-controls, .hero-down) {
    top: calc(88px + env(safe-area-inset-top));
    bottom: auto;
  }
  .page-home:has([data-analytics-settings]:not([hidden])) .cinema-hero > .hero-down {
    left: auto;
    right: 76px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    animation: none;
  }
  .page-home:has([data-analytics-settings]:not([hidden])) .cinema-hero > .media-controls button {
    width: 44px;
    height: 44px;
  }
  .page-home [data-analytics-settings] {
    max-height: calc(100dvh - 152px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
  }
}
