/* Meliza official site — lilac kawaii, mobile-first, no build step */

:root {
  --lilac-50: #fbf7ff;
  --lilac-100: #f3e9fc;
  --lilac-150: #eddff8;
  --lilac-200: #e4d0f4;
  --lilac-300: #d0b0ea;
  --lilac-400: #c4a8e8;
  --lilac-500: #a56ad0;
  --lilac-600: #8b4fb6;
  --lilac-700: #6e3d92;
  --lilac-800: #4f2c6a;
  --lilac-900: #3a1f50;
  --pink-200: #ffd0e0;
  --pink-300: #ffb3cc;
  --pink-400: #ff8fb7;
  --pink-500: #ff6ba0;
  --pink-600: #e85a8c;
  --cream: #fff9fe;
  --text: #3d2a52;
  --text-soft: #6b5380;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(110, 61, 146, 0.12);
  --shadow-soft: 0 6px 18px rgba(110, 61, 146, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --header-h: 64px;
  --font: "M PLUS Rounded 1c", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(255, 182, 217, 0.35), transparent 60%),
    radial-gradient(800px 500px at 100% 8%, rgba(196, 168, 232, 0.45), transparent 55%),
    radial-gradient(700px 400px at 80% 100%, rgba(255, 177, 210, 0.22), transparent 50%),
    var(--lilac-50);
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--lilac-600);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--pink-600); }

:focus-visible {
  outline: 3px solid var(--pink-400);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--lilac-800);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: rgba(251, 247, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 168, 232, 0.45);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand:hover { color: var(--lilac-700); }

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lilac-300);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 800;
}
.brand-name [lang="ja"] { font-size: 0.95rem; letter-spacing: 0.04em; }
.brand-latin { font-size: 0.68rem; font-weight: 500; color: var(--text-soft); }

.badge-beta {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: #fff;
  padding: 2px 7px 1px;
  border-radius: 999px;
  line-height: 1.5;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(255, 107, 160, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--lilac-800);
  background: rgba(196, 168, 232, 0.25);
}

/* Hero */
.hero { padding-bottom: 8px; }

.hero-banner-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--lilac-200);
  line-height: 0;
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
}

.hero-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 8px;
  text-align: center;
  position: relative;
}

.hero-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: -56px auto 12px;
  box-shadow:
    0 0 0 5px var(--cream),
    0 0 0 8px var(--lilac-300),
    0 14px 28px rgba(80, 40, 110, 0.18);
  background: var(--lilac-200);
}

.hero-kicker {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lilac-600);
}

.hero-title {
  margin: 0 0 8px;
  line-height: 1.15;
}
.hero-ja {
  display: block;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lilac-900);
}
.hero-en {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lilac-700);
}

.hero-tagline {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--text-soft);
  font-size: 1rem;
}
.hero-tagline-ja {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--pink-600);
  font-size: 1.05rem;
}
.kaomoji {
  white-space: nowrap;
  font-family: "Noto Sans JP", "Hiragino Sans", "Noto Sans CJK JP", var(--font);
  letter-spacing: -0.06em;
  font-weight: 500;
}
.nowrap { white-space: nowrap; }
.bio-es, .bio-ja, .soon-lead, .soon-lead-ja {
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--lilac-500), var(--lilac-600));
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 79, 182, 0.28);
}
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--lilac-600), var(--lilac-700)); }

.btn-ghost {
  background: var(--cream);
  color: var(--lilac-700);
  border-color: var(--lilac-300);
}
.btn-ghost:hover { color: var(--lilac-800); background: #fff; }

.btn-suno {
  background: #fff;
  color: var(--pink-600);
  border-color: var(--pink-300);
}
.btn-suno:hover { background: var(--pink-200); color: var(--pink-600); }

/* Sections */
.section { padding: 48px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(228, 208, 244, 0.35), rgba(255, 249, 254, 0.5) 40%, rgba(228, 208, 244, 0.25));
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--lilac-900);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.section-title-ja {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lilac-500);
  letter-spacing: 0.12em;
}
.section-lead {
  margin: -8px 0 20px;
  color: var(--text-soft);
}

.card {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 168, 232, 0.35);
  padding: 22px 20px;
}

.card-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac-500);
}

/* Bio */
.bio-card { text-align: center; padding: 28px 22px; }
.bio-role {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--lilac-600);
  letter-spacing: 0.06em;
}
.bio-es {
  margin: 0 auto 14px;
  max-width: 38rem;
  font-size: 1.08rem;
  font-weight: 500;
}
.bio-ja {
  margin: 0 auto 16px;
  max-width: 38rem;
  padding: 14px 16px;
  background: var(--lilac-100);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1.05rem;
}
.bio-note {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Music */
.music-artist { margin-bottom: 20px; }

.suno-premiere {
  margin-bottom: 20px;
  padding: 22px 20px;
}
.suno-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-200), var(--lilac-200));
  color: var(--lilac-800);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--pink-300);
}
.suno-note {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-weight: 500;
}
.suno-note-ja {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--pink-600);
}
.suno-latest { display: grid; gap: 16px; }
.suno-fallback {
  display: grid;
  gap: 14px;
  align-items: center;
}
.suno-cover {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 220px;
  margin: 0 auto;
  line-height: 0;
  background: var(--lilac-200);
}
.suno-cover img { width: 100%; height: auto; display: block; }
.suno-fallback-body { text-align: center; }
.suno-fallback-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lilac-900);
}
.suno-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--lilac-100);
  min-height: 180px;
}
.suno-frame iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.spotify-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--lilac-100);
  min-height: 352px;
}
.spotify-frame-compact { min-height: 152px; }
.spotify-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--lilac-800);
  background:
    radial-gradient(300px 160px at 50% 30%, rgba(255, 255, 255, 0.7), transparent 70%),
    var(--lilac-100);
}
.spotify-fallback img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(80, 40, 110, 0.15);
}
.spotify-fallback-name { font-weight: 800; font-size: 1.15rem; }
.spotify-fallback-cta {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--lilac-500), var(--lilac-600));
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(139, 79, 182, 0.25);
}
.spotify-frame iframe {
  position: relative;
  z-index: 1;
  display: block;
  border: 0;
  width: 100%;
  border-radius: 18px;
  background: transparent;
}

.music-single {
  display: grid;
  gap: 18px;
}
.single-cover-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 280px;
  margin: 0 auto;
}
.single-cover { width: 100%; }
.single-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--lilac-900);
}
.single-sub {
  margin: 4px 0 14px;
  color: var(--text-soft);
  font-weight: 500;
}
.single-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.music-featured { margin-bottom: 20px; }
.music-featured + .music-single { margin-bottom: 20px; }
.music-featured > .suno-badge { grid-column: 1 / -1; margin-bottom: 0; }
.single-blurb {
  margin: 0 0 8px;
  font-weight: 500;
}
.single-blurb-ja {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--lilac-100);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.98rem;
}

.music-featured .suno-latest { margin-top: 4px; }
.music-featured .single-links { margin-top: 12px; }

/* Playlist player (Spotify-like, mobile-first) */
.music-playlist {
  margin: 0 0 20px;
  padding: 18px 16px 16px;
}
.playlist-lead {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-weight: 500;
}
.playlist-now {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, var(--lilac-100), #ffe6f0 72%);
  border-radius: 20px;
  border: 1px solid rgba(196, 168, 232, 0.4);
}
.playlist-now-cover {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--lilac-200);
  line-height: 0;
}
.playlist-now-cover img {
  width: 88px;
  height: 88px;
  object-fit: cover;
}
.playlist-now-meta { min-width: 0; }
.playlist-now-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-600);
}
.playlist-now-title {
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lilac-900);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.playlist-now-artist {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
}
.playlist-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.playlist-btn {
  appearance: none;
  border: 1px solid rgba(196, 168, 232, 0.45);
  background: #fff;
  color: var(--lilac-700);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  padding: 0;
}
.playlist-btn svg { width: 22px; height: 22px; fill: currentColor; }
.playlist-btn-play {
  width: 58px;
  height: 58px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-400), var(--lilac-500));
  border: 0;
  box-shadow: 0 6px 14px rgba(232, 90, 140, 0.3);
}
.playlist-btn-play svg { width: 26px; height: 26px; }
.playlist-btn:hover { color: var(--pink-600); }
.playlist-btn-play:hover { color: #fff; transform: scale(1.05); }
.playlist-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.playlist-time {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  min-width: 2.5em;
}
.playlist-time-duration { text-align: right; }
.playlist-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--lilac-200);
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  accent-color: var(--pink-500);
}
.playlist-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pink-500);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(80, 40, 110, 0.25);
}
.playlist-seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pink-500);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(80, 40, 110, 0.25);
}
.playlist-suno-link {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}
.playlist-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pink-600);
  text-align: center;
}
.playlist-error[hidden] { display: none; }
.playlist-tracks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  max-height: 22.5rem;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(196, 168, 232, 0.3);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.playlist-track {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(196, 168, 232, 0.22);
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.playlist-track:last-child { border-bottom: 0; }
.playlist-track:hover,
.playlist-track:focus-visible { background: var(--lilac-100); }
.playlist-track.is-active {
  background: linear-gradient(135deg, var(--lilac-150), #ffe6f0);
}
.playlist-track-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--lilac-200);
}
.playlist-track-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--lilac-900);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-track-duration {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  white-space: nowrap;
}
.playlist-track.is-active .playlist-track-title { color: var(--lilac-800); }
.playlist-track.is-playing .playlist-track-duration {
  color: var(--pink-600);
}

@media (min-width: 720px) {
  .music-playlist { padding: 24px; }
  .playlist-now {
    grid-template-columns: 140px 1fr;
    gap: 8px 20px;
    padding: 16px 18px;
  }
  .playlist-now-cover,
  .playlist-now-cover img {
    width: 140px;
    height: 140px;
    border-radius: 18px;
  }
  .playlist-now-cover { grid-row: 1 / -1; }
  .playlist-now-title { font-size: 1.35rem; }
  .playlist-controls,
  .playlist-progress,
  .playlist-suno-link,
  .playlist-error {
    grid-column: 2;
    justify-content: flex-start;
    justify-self: start;
  }
  .playlist-progress { width: 100%; }
  .playlist-tracks { max-height: 28rem; }
}



/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  background: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(196, 168, 232, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
  color: inherit;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(110, 61, 146, 0.16);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: var(--lilac-200);
}
.gallery-cap {
  display: block;
  padding: 8px 10px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
}
.gallery-cap [lang="ja"] {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--lilac-500);
}

/* Coming soon */
.soon-card {
  text-align: center;
  padding: 32px 22px;
  background:
    radial-gradient(400px 180px at 50% 0%, rgba(255, 182, 217, 0.35), transparent 70%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.soon-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lilac-100);
  color: var(--lilac-700);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--lilac-300);
}
.soon-lead {
  margin: 0 auto 10px;
  max-width: 36rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.soon-lead-ja {
  margin: 0 auto 20px;
  max-width: 36rem;
  color: var(--text-soft);
}
.soon-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.soon-features li {
  background: #fff;
  border: 1px solid var(--lilac-200);
  color: var(--lilac-700);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* Socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.socials a,
.socials-static a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  color: var(--lilac-800);
  background: var(--cream);
  border: 1.5px solid var(--lilac-300);
  border-radius: 999px;
  padding: 10px 16px;
  min-width: 132px;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.socials a:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--pink-400);
  color: var(--pink-600);
}
.socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.socials-static { list-style: none; padding: 0; margin: 0; }

/* Footer */
.site-footer {
  padding: 36px 20px 48px;
  text-align: center;
  color: var(--text-soft);
  border-top: 1px solid rgba(196, 168, 232, 0.4);
  background: rgba(243, 233, 252, 0.55);
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 10px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lilac-300);
}
.site-footer p { margin: 0 0 4px; }
.footer-copy { font-size: 0.85rem; }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(40, 22, 58, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px 32px;
}
.lightbox-figure { margin: 0; max-width: min(920px, 100%); text-align: center; }
.lightbox-figure img {
  max-height: min(80vh, 900px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.lightbox-figure figcaption {
  color: #fff;
  margin-top: 10px;
  font-weight: 700;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
}
.lightbox-close { top: 12px; right: 12px; font-size: 1.8rem; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 143, 183, 0.55); }

/* Mobile header: brand on one row, nav fully visible on the next */
@media (max-width: 719px) {
  html { scroll-padding-top: 128px; }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px 6px;
    gap: 2px;
  }
  .nav {
    justify-content: center;
    flex-wrap: wrap;
    mask-image: none;
    width: 100%;
    overflow: visible;
    gap: 0;
  }
  .nav a {
    flex: 1 1 22%;
    text-align: center;
    padding: 5px 6px;
    font-size: 0.76rem;
  }
}

/* Desktop */
@media (min-width: 720px) {
  .header-inner { padding: 0 28px; height: var(--header-h); }
  .brand-avatar { width: 40px; height: 40px; }
  .nav { gap: 2px; mask-image: none; flex-wrap: wrap; justify-content: flex-end; }
  .nav a { font-size: 0.86rem; padding: 7px 10px; }

  .hero-avatar { width: 168px; height: 168px; margin-top: -76px; }
  .hero-panel { padding-bottom: 16px; }

  .section { padding: 64px 0; }
  .section-inner { padding: 0 28px; }

  .suno-fallback {
    grid-template-columns: 180px 1fr;
  }
  .suno-cover { max-width: none; margin: 0; }
  .suno-fallback-body { text-align: left; }

  .music-single {
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 28px;
    padding: 24px;
  }
  .single-cover-wrap { max-width: none; margin: 0; }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}



/* Social feeds */
.feed-actions {
  margin: 22px 0 0;
  text-align: center;
}

.x-feed {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.x-post {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 168, 232, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
  min-width: 0;
}
.x-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.x-head-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 44px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lilac-300);
  background: var(--lilac-200);
}
.x-head-names {
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.x-head-name {
  display: block;
  font-weight: 800;
  color: var(--lilac-900);
  font-size: 0.95rem;
}
.x-head-name small {
  font-weight: 700;
  color: var(--text-soft);
  font-size: 0.82rem;
}
.x-head-handle {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--lilac-600);
}
.x-head-date {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}
.x-text {
  margin: 0 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.95rem;
}
.x-photo {
  margin: 0 0 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--lilac-200);
  line-height: 0;
}
.x-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.x-link {
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  align-self: flex-start;
}

.tt-creator-wrap {
  max-width: 780px;
  margin: 0 auto 20px;
  min-height: 80px;
}
.tt-creator-wrap .tiktok-embed,
.tt-videos .tiktok-embed {
  margin: 0 auto 0;
  max-width: 100%;
}
.tt-videos {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.tt-video {
  min-width: 0;
}

.yt-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.yt-facade {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1024;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  font-family: inherit;
  color: #fff;
  text-align: left;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 107, 160, 0.92);
  box-shadow: 0 8px 20px rgba(80, 20, 60, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.yt-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--pink-500);
}
.yt-facade-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(30, 16, 40, 0.85));
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
}
.yt-frame-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1024;
  aspect-ratio: 16 / 9;
}
.yt-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* Clips de Suno — vertical 9:16 cards */
.suno-clips {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.suno-clip {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 168, 232, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 12px 12px 16px;
  min-width: 0;
}
.suno-clip-media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: var(--lilac-200);
  margin-bottom: 12px;
  isolation: isolate;
}
.suno-clip-media video,
.suno-clip-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.suno-clip-media video,
.suno-clip-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.suno-clip-poster {
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.suno-clip.is-playing .suno-clip-poster { opacity: 0; }
.suno-clip-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 107, 160, 0.92);
  box-shadow: 0 8px 20px rgba(80, 20, 60, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  opacity: 1;
}
.suno-clip-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.suno-clip-play:hover,
.suno-clip-play:focus-visible {
  background: var(--pink-500);
  transform: translate(-50%, -50%) scale(1.06);
}
.suno-clip.is-playing .suno-clip-play { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .suno-clip-play { opacity: 0; }
  .suno-clip-media:focus-within .suno-clip-play,
  .suno-clip-play:focus-visible { opacity: 1; }
  .suno-clip.is-playing .suno-clip-play { opacity: 0; }
}
.suno-clip-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--lilac-900);
  line-height: 1.3;
}
.suno-clip-date {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
}
.suno-clip .btn {
  width: 100%;
  text-align: center;
  font-size: 0.86rem;
  padding: 8px 12px;
  margin-top: auto;
}
.suno-clip-profile {
  margin: 10px 0 0;
  text-align: center;
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--lilac-600);
}
.suno-clip-profile:hover { color: var(--pink-600); }

@media (max-width: 719px) {
  .suno-clips {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -20px;
    padding: 2px 20px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .suno-clip {
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
  }
}

@media (min-width: 720px) {
  .x-feed { grid-template-columns: repeat(2, 1fr); }
  .tt-videos { grid-template-columns: repeat(3, 1fr); }
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
  .suno-clips { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .yt-play { transition: none; }
  .yt-facade:hover .yt-play { transform: translate(-50%, -50%); }
  .suno-clip-play { opacity: 1; transition: none; }
  .suno-clip-media:hover .suno-clip-play { transform: translate(-50%, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery-item, .socials a { transition: none; }
  .btn:hover, .gallery-item:hover, .socials a:hover { transform: none; }
}

/* ============================================================
   Chat — Habla con Meliza
   ============================================================ */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.chat-launch {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 4px auto 0;
  padding: 10px 22px 10px 10px;
  font-size: 1.05rem;
}
.chat-launch img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; }

.chat-card {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  height: min(640px, 78vh);
  margin: 8px auto 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--lilac-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--lilac-150), #ffe6f0);
  border-bottom: 1.5px solid var(--lilac-200);
}
.chat-header-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: var(--shadow-soft); flex: none;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-name { margin: 0; font-weight: 800; font-size: 1.1rem; color: var(--lilac-800); line-height: 1.2; }
.chat-name span { font-family: "Noto Sans JP", var(--font); font-weight: 500; font-size: .95rem; color: var(--lilac-600); }
.chat-status { margin: 2px 0 0; font-size: .82rem; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.chat-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #3fcf7a;
  box-shadow: 0 0 0 3px rgba(63, 207, 122, .2);
}
.chat-card.is-resting .chat-dot { background: #b9a6cc; box-shadow: 0 0 0 3px rgba(185, 166, 204, .25); }
.chat-header-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.chat-counter { margin: 0; font-size: .78rem; color: var(--lilac-700); background: #fff; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.chat-reset {
  border: 0; background: none; color: var(--text-soft); font: inherit; font-size: .74rem;
  cursor: pointer; padding: 2px 4px; border-radius: 8px;
}
.chat-reset:hover { color: var(--pink-600); }
.chat-close {
  display: none; border: 0; background: #fff; color: var(--lilac-700);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; flex: none;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(228, 208, 244, .35), transparent 70%),
    radial-gradient(400px 200px at 100% 100%, rgba(255, 208, 224, .3), transparent 70%);
}
.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.chat-msg img { width: 32px; height: 32px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: var(--shadow-soft); }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 20px;
  line-height: 1.55;
  font-size: .97rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg.meliza { align-self: flex-start; }
.chat-msg.meliza .chat-bubble {
  background: var(--lilac-150);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.user .chat-bubble {
  background: var(--pink-200);
  color: #5a2440;
  border-bottom-right-radius: 6px;
}
.chat-typing .chat-bubble { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: .88rem; }
.chat-dots { display: inline-flex; gap: 4px; }
.chat-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lilac-500);
  animation: chat-bounce 1.2s infinite ease-in-out;
}
.chat-dots i:nth-child(2) { animation-delay: .15s; }
.chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 4px; }
.chat-chips[hidden] { display: none; }
.chat-chip {
  border: 1.5px solid var(--lilac-300);
  background: #fff;
  color: var(--lilac-700);
  font: inherit;
  font-size: .86rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.chat-chip:hover { background: var(--lilac-100); transform: translateY(-1px); }

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px 6px;
}
.chat-form textarea {
  flex: 1;
  resize: none;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  border: 1.5px solid var(--lilac-200);
  border-radius: 22px;
  padding: 11px 16px;
  max-height: 120px;
  background: var(--lilac-50);
  outline: none;
}
.chat-form textarea:focus { border-color: var(--lilac-400); box-shadow: 0 0 0 3px rgba(196, 168, 232, .3); }
.chat-send {
  width: 48px; height: 48px; flex: none;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-400), var(--lilac-500));
  box-shadow: 0 6px 14px rgba(232, 90, 140, .3);
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.chat-send:hover { transform: scale(1.07); }
.chat-send:disabled { opacity: .45; cursor: default; transform: none; }
.chat-foot { margin: 0; padding: 0 16px 10px; text-align: center; font-size: .72rem; color: var(--text-soft); opacity: .8; }

@media (max-width: 719px) {
  .chat-launch { display: inline-flex; }
  #chat .section-inner { text-align: center; }
  .chat-card { display: none; text-align: left; }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat-card {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 2000;
    height: 100%;
    height: 100dvh;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--cream);
  }
  .chat-close { display: block; }
  .chat-header { padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
  .chat-header-avatar { width: 44px; height: 44px; }
  .chat-reset { font-size: .7rem; }
  .chat-msg { max-width: 92%; }
  .chat-form { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-dots i { animation: none; }
  .chat-log { scroll-behavior: auto; }
}
