/* ============================================================
   MAC MUSIC PROJECT — shared stylesheet
   ============================================================ */

@font-face { font-display: swap; }

:root {
  --ink: #0e2233;
  --ink-2: #0a1a28;
  --panel: #142c40;
  --panel-soft: #17324a;
  --accent: #5fd8ce;
  --accent-dim: rgba(95, 216, 206, 0.35);
  --warm: #ff6b4a;
  --paper: #f4f7f6;
  --paper-dim: rgba(244, 247, 246, 0.62);
  --line: rgba(244, 247, 246, 0.14);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- layout skeleton ---------- */

.layout {
  display: flex;
  min-height: 100vh;
}

/* left / static brand half */

.brand-panel {
  position: fixed;
  inset: 0 50% 0 0;
  width: 42%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, var(--ink) 0%, var(--ink-2) 68%, #071119 100%);
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 70%);
}

.brand-mark {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: rise 900ms cubic-bezier(.2,.8,.2,1) both;
}

.brand-mark img {
  width: min(260px, 32vw);
  height: auto;
  border-radius: 50%;
  animation: breathe 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(95,216,206,0.18));
}

.brand-ring {
  position: absolute;
  width: min(320px, 40vw);
  height: min(320px, 40vw);
  z-index: 1;
  pointer-events: none;
}

.brand-ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  opacity: 0.55;
  animation: draw 2.2s cubic-bezier(.16,.84,.44,1) 300ms forwards;
}

.brand-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-align: center;
}

.brand-caption a { color: var(--accent); }
.brand-caption a:hover { text-decoration: underline; }

/* right / content half */

.content-panel {
  margin-left: 42%;
  width: 58%;
  min-height: 100vh;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

/* slim top nav used on interior pages */

.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.subnav-home {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.subnav-home span { color: var(--accent); }

.subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subnav-links a {
  color: var(--paper-dim);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.subnav-links a:hover,
.subnav-links a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}

/* hero block (home page) */

.hero {
  padding: clamp(48px, 8vh, 96px) clamp(24px, 5vw, 64px) clamp(32px, 6vh, 64px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}

.hero p {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper-dim);
  margin: 0;
}

/* nav track list (home page buttons) */

.tracklist {
  padding: clamp(28px, 5vh, 48px) clamp(24px, 5vw, 64px) clamp(48px, 8vh, 96px);
}

.tracklist .eyebrow { margin-bottom: 28px; }

.nav-btn {
  --stagger: 0ms;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 620ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--stagger);
  position: relative;
  overflow: hidden;
}

.tracklist .nav-btn:last-child { border-bottom: 1px solid var(--line); }

.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
  transform: translateX(-101%);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}

.nav-btn:hover::before,
.nav-btn:focus-visible::before { transform: translateX(0); }

.nav-btn-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-dim);
  min-width: 32px;
  position: relative;
  z-index: 1;
}

.nav-btn-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: 0.01em;
  flex: 1;
  position: relative;
  z-index: 1;
  transition: color 180ms ease, transform 220ms ease;
}

.nav-btn:hover .nav-btn-label,
.nav-btn:focus-visible .nav-btn-label {
  color: var(--accent);
  transform: translateX(6px);
}

.nav-btn-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--paper-dim);
  position: relative;
  z-index: 1;
  display: none;
}

.nav-btn-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--paper-dim);
  position: relative;
  z-index: 1;
  transition: transform 220ms ease, color 220ms ease;
}

.nav-btn:hover .nav-btn-arrow,
.nav-btn:focus-visible .nav-btn-arrow {
  color: var(--warm);
  transform: translateX(4px);
}

/* generic page body */

.page-body {
  padding: clamp(40px, 7vh, 72px) clamp(24px, 5vw, 64px) clamp(64px, 10vh, 120px);
  flex: 1;
}

.page-body h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 20px;
}

.page-body > p.lede {
  max-width: 52ch;
  color: var(--paper-dim);
  line-height: 1.7;
  font-size: 15px;
  margin: 0 0 48px;
}

/* empty-state / invitation card */

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 40px clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.empty-state .ring-mini {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.empty-state .ring-mini circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.7;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
}

.empty-state p {
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 48ch;
}

/* tracklist-style table used on lanzamientos / futuros-lanzamientos */

.release-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 4px;
  border-top: 1px dashed var(--line);
  color: var(--paper-dim);
}

.release-row:last-child { border-bottom: 1px dashed var(--line); }

.release-row .code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.release-row .title { font-family: var(--font-body); font-size: 15px; }
.release-row .date { font-family: var(--font-mono); font-size: 12px; }

/* release cards — Spotify / YouTube / TikTok embeds */

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.release-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel-soft);
  display: flex;
  flex-direction: column;
}

.release-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  background: var(--ink-2);
}

.release-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease, filter 320ms ease;
  filter: saturate(0.85);
}

.release-thumb:hover img,
.release-thumb:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1);
}

.release-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--paper);
  background: rgba(14, 34, 51, 0.38);
  transition: background 200ms ease;
}

.release-thumb:hover .release-thumb-play,
.release-thumb:focus-visible .release-thumb-play {
  background: rgba(14, 34, 51, 0.55);
  color: var(--accent);
}

.release-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px 4px;
}

.release-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 2px;
  padding: 2px 8px;
}

.release-badge--upcoming {
  color: var(--warm);
  border-color: rgba(255, 107, 74, 0.35);
}

.release-badge--news {
  color: var(--paper);
  border-color: var(--line);
  background: rgba(244, 247, 246, 0.06);
}

.release-source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 180ms ease;
}

.release-source-link:hover {
  gap: 12px;
  text-decoration: underline;
}

.release-source-link .arrow {
  font-family: var(--font-mono);
}

.release-thumb-info {
  font-size: 20px;
}

.release-card-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
}

.release-card-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--paper-dim);
  width: 100%;
}

.release-card-body:not(:empty) {
  padding: 14px 18px 18px;
}

.release-embed {
  border: none;
  display: block;
  width: 100%;
}

.release-embed--video {
  height: auto;
  background: #000;
}

.release-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.release-embed-wrap .release-embed {
  position: absolute;
  inset: 0;
  height: 100%;
}

.release-card-body .tiktok-embed {
  margin: 0 auto;
}

.release-synopsis {
  padding: 12px 18px 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-dim);
}

/* contact page */

.contact-card {
  display: inline-flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  padding: 18px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  transition: background 200ms ease, color 200ms ease;
}

.mail-btn:hover {
  background: var(--accent);
  color: var(--ink);
}

.mail-btn .arrow { font-family: var(--font-mono); }

/* footer */

.site-footer {
  padding: 28px clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  text-transform: uppercase;
}

.site-footer a,
.site-footer .manage-cookies-link {
  color: var(--paper-dim);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.site-footer a:hover,
.site-footer .manage-cookies-link:hover {
  color: var(--accent);
}

/* ---------- animations ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark, .nav-btn, .brand-mark img { animation: none !important; }
  .brand-ring circle { stroke-dashoffset: 0; animation: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  html, body { height: 100%; overflow: hidden; }

  .brand-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    inset: auto;
    width: 100%;
    height: 50dvh;
    min-height: 0;
    z-index: 100;
  }

  .content-panel {
    position: fixed;
    top: 50dvh;
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: 0;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
  }

  .brand-mark img { width: 42vw; max-width: 200px; }
  .subnav { padding: 20px 20px; }
  .page-body, .tracklist, .hero { padding-left: 20px; padding-right: 20px; }
  .nav-btn-desc { display: none; }
  .contact-card { width: 100%; }
  .mail-btn {
    font-size: clamp(12px, 3vw, 15px);
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
}
/* cookie consent banner + preferences panel */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.cookie-banner-text {
  flex: 1 1 420px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-dim);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  white-space: nowrap;
}

/* Reject and Accept are intentionally the same visual weight —
   equal size, equal prominence, no dark patterns. */
.cookie-btn-reject,
.cookie-btn-accept {
  border-color: var(--accent);
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--ink);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--accent);
}

.cookie-btn-config {
  background: transparent;
  color: var(--paper-dim);
}

.cookie-btn:hover {
  filter: brightness(1.1);
}

.cookie-config {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(7, 17, 25, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-config[hidden] {
  display: none;
}

.cookie-config-inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: 520px;
  width: 100%;
  padding: 28px clamp(20px, 4vw, 32px);
  max-height: 85vh;
  overflow-y: auto;
}

.cookie-config-inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 12px;
}

.cookie-config-intro {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.6;
  margin: 0 0 20px;
}

.cookie-category {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-category-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
}

.cookie-category-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 8px;
}

.cookie-category-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.6;
  margin: 8px 0 0;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.cookie-config-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* inline consent prompt shown in place of a release embed
   when third-party content hasn't been allowed yet */

.release-consent-prompt {
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.6;
}

.release-consent-prompt button {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 2px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
}

.manage-cookies-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-text {
    flex: none;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .cookie-btn {
    flex: 1;
  }
}

/* Structured synopsis — shown only when playing */
.release-synopsis-wrapper {
  padding: 16px 18px;
  border-top: 1px dashed var(--line);
  margin-top: 0;
}

.synopsis-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem); /* H3 size */
  font-weight: 400;
  color: var(--paper);
  text-align: center;
  margin: 0 0 0.4rem 0;
  letter-spacing: 0.01em;
}

.synopsis-subtitle {
  font-family: var(--font-body); /* Switched to body font for H5 feel */
  font-size: clamp(0.95rem, 1.8vw, 1.1rem); /* H5 size */
  font-weight: 500; /* Normal/medium weight, no italic */
  font-style: normal;
  color: var(--paper-dim);
  text-align: center;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
}

.synopsis-body {
  line-height: 1.65;
  font-size: 0.875rem;
  color: var(--paper-dim);
}

.synopsis-body strong {
  color: var(--paper);
  font-weight: 300;
}
body[data-page="politica-cookies"] .cookie-banner {
  display: none;
}
