/* Cookie consent banner and the click-to-load gate for the Spotify player.
   Self-contained so it works on both the home page and /privacy/. */
.consent-banner {
  --consent-bg: rgba(8, 7, 6, .97);
  --consent-text: #e8e1d3;
  --consent-muted: #a8a299;
  --consent-line: rgba(163, 38, 30, .7);
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--consent-line);
  background: var(--consent-bg);
  color: var(--consent-text);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .7);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.consent-text {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 1.45;
  color: var(--consent-muted);
}

.consent-text a {
  color: var(--consent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.consent-button {
  border: 1px solid rgba(163, 38, 30, .72);
  background: linear-gradient(180deg, rgba(83, 14, 11, .42), rgba(25, 8, 7, .4));
  color: #eee7db;
  padding: 12px 18px;
  min-width: 104px;
  font-family: Oxanium, "Cinzel Decorative", sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}

.consent-button:hover,
.consent-button:focus-visible {
  background: rgba(105, 18, 14, .6);
}

.consent-button:focus-visible {
  outline: 1px solid #e8e1d3;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .consent-actions .consent-button {
    flex: 1;
  }
}

.consent-embed-gate {
  position: relative;
  z-index: 2;
  min-height: 352px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, .35);
}

.consent-embed-gate p {
  margin: 0;
  max-width: 440px;
  color: #a8a299;
  line-height: 1.5;
}

/* Footer and policy triggers render as links. */
button[data-consent-open] {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* The music panel styles the iframe directly, which would override [hidden]. */
iframe[data-consent-src][hidden] {
  display: none !important;
}
