/* Dino Shadix — cookie consent banner + re-open affordance. Uses the theme's :root vars. */

.ds-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--panel, #0e0e0e);
  border-top: 1px solid var(--line, #242424);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}

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

.ds-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ds-consent__text {
  flex: 1 1 420px;
  margin: 0;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #9a9a93);
}

.ds-consent__text strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #f4f4ef);
}

.ds-consent__text a {
  color: var(--ink, #f4f4ef);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ds-consent__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.ds-consent__btn {
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 2px;
  border: 1px solid var(--line, #242424);
  cursor: pointer;
  background: transparent;
  color: var(--ink, #f4f4ef);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ds-consent__btn--ghost:hover,
.ds-consent__btn--ghost:focus-visible {
  border-color: var(--ink, #f4f4ef);
}

.ds-consent__btn--accept {
  background: var(--acid, #c8ff00);
  border-color: var(--acid, #c8ff00);
  color: #0a0a0a;
  font-weight: 700;
}

.ds-consent__btn--accept:hover,
.ds-consent__btn--accept:focus-visible {
  filter: brightness(1.08);
}

/* Small persistent re-open control (bottom-left), shown only after a decision.
   Lifted to sit just above the fixed 80px-tall .ds-player bar (z-index 60), and
   inset to match the player's own 24px horizontal padding. translateZ promotes
   it to its own compositing layer so it repaints cleanly when a backgrounded
   Chrome tab is restored (it otherwise sits over the player's backdrop-filter). */
.ds-consent-reopen {
  position: fixed;
  left: 24px;
  bottom: 94px;
  z-index: 80;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 2px;
  border: 1px solid var(--line, #242424);
  background: var(--panel, #0e0e0e);
  color: var(--faint, #5f5f5a);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.ds-consent-reopen[hidden] {
  display: none;
}

.ds-consent-reopen:hover,
.ds-consent-reopen:focus-visible {
  opacity: 1;
  color: var(--ink, #f4f4ef);
}

/* Match the player's reduced horizontal padding at its ≤900px breakpoint. */
@media (max-width: 900px) {
  .ds-consent-reopen {
    left: 14px;
  }
}

@media (max-width: 560px) {
  .ds-consent__inner {
    gap: 14px;
  }
  .ds-consent__actions {
    width: 100%;
  }
  .ds-consent__btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-consent__btn,
  .ds-consent-reopen {
    transition: none;
  }
}
