:root {
  --bg: #0a0a0a;
  --bg-elev: #161616;
  --bg-elev-2: #1f1f1f;
  --yellow: #F4D03F;
  --yellow-soft: #f7dc6f;
  --red: #E63946;
  --red-deep: #b8232f;
  --white: #F5F5F5;
  --grey: #9aa0a6;
  --grey-dark: #2a2a2a;

  --font-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --font-body: "Lora", Georgia, serif;

  --container: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-py: clamp(80px, 10vw, 140px);

  --radius: 4px;
  --shadow-glow: 0 30px 80px -20px rgba(230, 57, 70, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ================ HEADER ================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  isolation: isolate;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
}

.brand-mark {
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--red);
}

.brand-text { color: var(--yellow); }

.site-nav { display: flex; align-items: center; }

/* Raggruppa CTA mobile + menu: il margine sinistro spinge tutto a destra accanto al brand */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Visibile solo su smartphone (vedi media query): evita il CTA dentro il pannello fixed che su WebKit può finire sopra la topbar */
.header-cta-mobile {
  display: none;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-list a {
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--white);
  padding: 8px 0;
  position: relative;
  transition: color .2s ease;
}

.nav-list a:hover { color: var(--yellow); }

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--yellow);
  transition: right .25s ease;
}

.nav-list a:hover::after { right: 0; }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius);
  transition: background .2s ease;
}

.nav-cta:hover { background: var(--red-deep); color: var(--white) !important; }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 36px; height: 36px;
  padding: 6px;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================ HERO ================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(230, 57, 70, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(244, 208, 63, 0.08), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.012) 2px,
      rgba(255,255,255,0.012) 3px
    );
  pointer-events: none;
}

.hero-video-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 25%, rgba(10, 10, 10, 0.75) 95%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  width: 100%;
}

.hero-cover {
  position: relative;
  margin: 0;
  transform: rotate(-1.5deg);
  transition: transform .5s ease;
}

.hero-cover:hover { transform: rotate(0deg) scale(1.02); }

.hero-cover img {
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px -20px rgba(0,0,0,0.9),
    0 0 60px -20px rgba(230, 57, 70, 0.4);
}

.hero-cover-shadow {
  position: absolute;
  bottom: -40px;
  left: 10%; right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.6), transparent 70%);
  z-index: -1;
}

.hero-text {
  position: relative;
}

.hero-author {
  font-family: var(--font-display);
  letter-spacing: 6px;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--white);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 0 4px 30px rgba(244, 208, 63, 0.15);
}

.hero-title span { display: block; }

.hero-title-accent {
  position: relative;
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--grey);
  margin: 24px 0 8px;
  max-width: 520px;
  line-height: 1.5;
}

.hero-publisher {
  font-family: var(--font-display);
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--white);
  margin-bottom: 32px;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-triangle {
  position: absolute;
  top: -30px;
  right: -10px;
  width: 0; height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 36px solid var(--red);
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.5));
  animation: pulseTriangle 4s ease-in-out infinite;
}

@keyframes pulseTriangle {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 36px;
  border: 2px solid var(--white);
  border-radius: 12px;
  opacity: 0.6;
  transition: opacity .2s ease;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll span {
  display: block;
  width: 2px; height: 8px;
  background: var(--yellow);
  margin: 6px auto 0;
  border-radius: 1px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0; }
  40% { opacity: 1; }
  80%, 100% { transform: translateY(12px); opacity: 0; }
}

/* ================ BUTTONS ================ */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 15px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 8px 30px -10px rgba(230, 57, 70, 0.7);
}
.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(230, 57, 70, 0.9);
}

.btn-ghost {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}
.btn-ghost:hover {
  background: var(--yellow);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 44px;
  font-size: 17px;
  letter-spacing: 4px;
}

/* ================ SECTION COMMONS ================ */

section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 6px;
  font-size: 13px;
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 16px;
  position: relative;
  padding-left: 32px;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 2px;
  background: var(--red);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin: 0 0 32px;
  text-transform: uppercase;
  max-width: 16ch;
}

.section-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--grey);
  font-style: italic;
  max-width: 60ch;
  margin: 0 0 56px;
}

/* ================ SINOSSI ================ */

.sinossi {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sinossi-body {
  max-width: 70ch;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--white);
}

.sinossi-body p {
  margin-bottom: 1.4em;
}

.sinossi-body strong {
  color: var(--yellow);
  font-weight: 600;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list li {
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ================ PERSONAGGI ================ */

.personaggi {
  background: linear-gradient(180deg, var(--bg) 0%, #050505 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.char-card {
  position: relative;
  padding: 28px 28px 30px 32px;
  background: var(--bg-elev);
  border-left: 3px solid var(--red);
  border-radius: 2px;
  transition: transform .35s ease, background .25s ease, box-shadow .35s ease;

  opacity: 0;
  transform: translateY(16px);
}

.char-photo {
  margin: -28px -28px 22px -32px;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(244, 208, 63, 0.18);
  min-height: 180px;
}

.char-photo::before {
  content: "";
  display: block;
  padding-top: 75%;
}

.char-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform .5s ease, opacity .35s ease;
}

.char-card:hover .char-photo img {
  transform: scale(1.04);
  opacity: 1;
}

.char-card--killer .char-photo {
  border-bottom-color: rgba(230, 57, 70, 0.35);
  filter: grayscale(0.6) contrast(1.05);
}

.char-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.char-card:hover {
  background: var(--bg-elev-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8), -3px 0 0 var(--yellow);
  border-left-color: var(--yellow);
}

.char-role {
  font-family: var(--font-display);
  letter-spacing: 4px;
  font-size: 12px;
  color: var(--white);
  text-transform: uppercase;
  margin: 0 0 8px;
  opacity: 0.7;
}

.char-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  color: var(--yellow);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.char-desc {
  font-size: 15px;
  color: var(--white);
  line-height: 1.6;
  margin: 0;
}

.char-desc em { color: var(--yellow-soft); font-style: italic; }

.char-card--killer {
  background: #050505;
  border: 1px solid var(--red);
  border-left: 3px solid var(--red);
  position: relative;
  overflow: hidden;
}

.char-card--killer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.15), transparent 60%);
  pointer-events: none;
}

.char-card--killer .char-name {
  color: var(--red);
  font-style: italic;
}

.char-card--killer:hover {
  background: #0a0303;
  box-shadow: 0 20px 50px -20px rgba(230, 57, 70, 0.5);
  border-left-color: var(--red);
}

.char-card-mark {
  position: absolute;
  top: 24px; right: 24px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid var(--red);
  opacity: 0.7;
}

/* ================ AUTORE ================ */

.autore {
  background: var(--bg-elev);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.autore-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}

.autore-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  overflow: hidden;
}

.autore-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.autore-photo::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(244, 208, 63, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.autore-text p {
  font-size: 17px;
  max-width: 60ch;
  color: var(--white);
}

.autore-text em { color: var(--yellow-soft); }

.autore-note small {
  color: var(--grey);
  font-size: 13px;
  font-style: italic;
}

/* ================ EDITORE ================ */

.editore {
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.editore-inner .eyebrow {
  display: inline-block;
  padding-left: 0;
}

.editore-inner .eyebrow::before { display: none; }

.editore-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.04em;
  color: var(--yellow);
  margin: 8px 0 16px;
  text-transform: uppercase;
}

.editore-tag {
  font-style: italic;
  color: var(--grey);
  max-width: 50ch;
  margin: 0 auto 28px;
  font-size: 17px;
}

.link-arrow {
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 14px;
  color: var(--yellow);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--yellow);
  transition: color .2s ease, border-color .2s ease, padding-right .2s ease;
}

.link-arrow::after {
  content: " →";
  display: inline-block;
  margin-left: 6px;
  transition: transform .2s ease;
}

.link-arrow:hover {
  color: var(--red);
  border-color: var(--red);
}

.link-arrow:hover::after { transform: translateX(4px); }

/* ================ CTA FINAL ================ */

.cta-final {
  background:
    linear-gradient(180deg, rgba(230,57,70,0.04) 0%, transparent 100%),
    var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.1), transparent 60%);
  pointer-events: none;
}

.cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-triangle {
  display: block;
  margin: 0 auto 32px;
  width: 0; height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-top: 42px solid var(--red);
  filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.6));
  animation: pulseTriangle 3s ease-in-out infinite;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  color: var(--yellow);
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cta-sub {
  font-style: italic;
  color: var(--white);
  font-size: clamp(17px, 1.5vw, 20px);
  margin-bottom: 44px;
}

/* ================ GALLERIA ================ */

.galleria {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(244, 208, 63, 0.04), transparent 60%),
    var(--bg-elev);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.galleria-videos {
  margin: clamp(28px, 4vw, 48px) auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
  max-width: 1100px;
}

.galleria-video {
  margin: 0;
  position: relative;
  border: 1px solid rgba(244, 208, 63, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

.galleria-video video {
  width: 100%;
  height: auto;
  display: block;
}

.galleria-video-caption {
  font-family: var(--font-display);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--yellow);
  text-align: center;
  padding: 12px 16px;
  background: rgba(0,0,0,0.6);
  border-top: 1px solid rgba(244, 208, 63, 0.15);
}

.galleria-grid {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.galleria-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-elev-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 1 / 1;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.galleria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .4s ease;
  opacity: 0.92;
}

.galleria-item:hover {
  border-color: var(--yellow);
  box-shadow: 0 14px 40px -14px rgba(244, 208, 63, 0.35);
  transform: translateY(-2px);
}

.galleria-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.galleria-item:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ================ LIGHTBOX ================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  position: relative;
  width: min(100%, 1200px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(50px, 7vw, 100px);
  box-sizing: border-box;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}

.lightbox-btn {
  position: absolute;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  z-index: 2;
}

.lightbox-btn:hover {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
}

.lightbox-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--yellow);
  background: rgba(10,10,10,0.7);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 208, 63, 0.25);
}

body.lightbox-open {
  overflow: hidden;
}

/* ================ MUSIC TRACKS POPUP ================ */

.music-tracks {
  position: fixed;
  right: calc(28px + env(safe-area-inset-right, 0px));
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  background: var(--bg-elev);
  border: 1px solid rgba(244, 208, 63, 0.25);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  min-width: 240px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.music-tracks.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.music-tracks-title {
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--yellow);
  margin: 4px 8px 8px;
  opacity: 0.85;
}

.music-tracks-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.music-track-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--white);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.music-track-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--yellow);
}

.music-track-btn[aria-current="true"] {
  background: rgba(244, 208, 63, 0.1);
  color: var(--yellow);
}

.music-track-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-dark);
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.music-track-btn[aria-current="true"] .music-track-dot {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 8px rgba(244, 208, 63, 0.6);
}

@media (max-width: 720px) {
  .galleria-videos {
    grid-template-columns: 1fr;
  }
  .galleria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-btn { width: 42px; height: 42px; font-size: 18px; }
  .music-tracks {
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    min-width: 220px;
  }
}

/* ================ FOOTER ================ */

.site-footer {
  background: #050505;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-credit {
  margin: 0;
  font-size: 13px;
  color: var(--grey);
  font-style: italic;
}

.footer-legal {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.55;
  flex-basis: 100%;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

.footer-legal a {
  color: inherit;
  transition: color .2s ease, opacity .2s ease;
}

.footer-legal a:hover {
  color: var(--yellow);
  opacity: 1;
}

/* ================ POLICY PAGES ================ */

.policy-hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(244, 208, 63, 0.06), transparent 60%),
    var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.policy-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin: 4px 0 20px;
  text-transform: uppercase;
}

.policy-lead {
  color: var(--white);
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 70ch;
  margin: 0 0 16px;
}

.policy-meta {
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
}

.policy-body {
  background: var(--bg);
  padding: clamp(48px, 7vw, 96px) 0;
}

.policy-inner {
  max-width: 780px;
}

.policy-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(244, 208, 63, 0.15);
}

.policy-inner h2:first-of-type {
  margin-top: 0;
}

.policy-inner p,
.policy-inner ul {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

.policy-inner p { margin: 0 0 14px; }
.policy-inner ul { margin: 0 0 18px; padding-left: 22px; }
.policy-inner li { margin-bottom: 8px; }
.policy-inner li em { color: var(--yellow-soft); font-style: italic; }
.policy-inner strong { color: var(--yellow-soft); }

.policy-inner a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: rgba(244, 208, 63, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}

.policy-inner a:hover {
  text-decoration-color: var(--yellow);
}

.policy-inner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--yellow-soft);
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.policy-table thead {
  background: var(--bg-elev);
}

.policy-table th {
  font-family: var(--font-display);
  text-align: left;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--yellow);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.policy-table td {
  padding: 14px;
  vertical-align: top;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.55;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

/* ================ COOKIE BANNER ================ */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid var(--yellow);
  box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, 0.6);
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding:
    20px
    calc(var(--pad-x) + env(safe-area-inset-right, 0px))
    calc(20px + env(safe-area-inset-bottom, 0px))
    calc(var(--pad-x) + env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cookie-banner-text { min-width: 0; }

.cookie-banner-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--yellow);
}

.cookie-banner-body {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
  max-width: 78ch;
}

.cookie-banner-body a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: rgba(244, 208, 63, 0.4);
  text-underline-offset: 3px;
}

.cookie-banner-body a:hover {
  text-decoration-color: var(--yellow);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn-primary,
.cookie-btn-secondary {
  font-size: 13px;
  padding: 12px 22px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  font-family: var(--font-display);
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color .2s ease, color .2s ease;
}

.cookie-btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ================ COOKIE MODAL ================ */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.cookie-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cookie-modal-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid rgba(244, 208, 63, 0.25);
  border-radius: var(--radius);
  padding: 36px clamp(20px, 4vw, 40px);
  color: var(--white);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  color: var(--white);
  opacity: 0.6;
  font-size: 28px;
  line-height: 1;
  width: 36px; height: 36px;
  cursor: pointer;
  transition: opacity .2s ease, color .2s ease;
}

.cookie-modal-close:hover {
  opacity: 1;
  color: var(--yellow);
}

.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 14px;
}

.cookie-modal-lead {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
  color: var(--white);
}

.cookie-modal-lead em {
  color: var(--yellow-soft);
  font-style: italic;
}

.cookie-category {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.02);
}

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

.cookie-category-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  color: var(--white);
}

.cookie-category-state {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244, 208, 63, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(244, 208, 63, 0.3);
  white-space: nowrap;
}

.cookie-category-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey);
}

.cookie-category-desc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--yellow-soft);
}

.cookie-modal-note {
  font-size: 13px;
  font-style: italic;
  color: var(--grey);
  margin: 0 0 24px;
  line-height: 1.55;
}

.cookie-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 18px;
}

.cookie-modal-link {
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--white);
  opacity: 0.75;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity .2s ease, color .2s ease, border-color .2s ease;
}

.cookie-modal-link:hover {
  opacity: 1;
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-btn-primary,
  .cookie-btn-secondary {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ================ RESPONSIVE ================ */

@media (max-width: 1024px) {
  .char-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }

  /* Menu mobile a tendina con collasso via max-height.
     Più affidabile del trucco translateY(-100%-Npx): nulla può "spuntare"
     sopra la topbar perché l'overflow è clippato e l'origine è sotto la topbar. */
  .nav-list {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 var(--pad-x);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 49; /* sotto la site-header (z:50) per evitare flicker */
    transition: max-height .3s ease, padding .3s ease, opacity .2s ease;
  }

  .nav-list.is-open {
    max-height: calc(100vh - 64px - env(safe-area-inset-top, 0px));
    padding-top: 12px;
    padding-bottom: 16px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list li { width: 100%; }

  .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .nav-list a::after { display: none; }

  .nav-list li:last-child a { border-bottom: none; }

  /* "Acquista" è nella barra ( .header-cta-mobile ); la copia nel menu fixed causava artefatti di stacking sopra la topbar */
  .nav-list li:last-child {
    display: none;
  }

  .header-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 1.5px;
    padding: 8px 12px !important;
  }

  /* Brand più compatto su mobile per dare aria al burger */
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { border-left-width: 7px; border-right-width: 7px; border-top-width: 11px; }

  .hero {
    padding-top: max(100px, calc(64px + env(safe-area-inset-top, 0px) + 28px));
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-cover {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-tagline { margin-left: auto; margin-right: auto; }

  .hero-cta { justify-content: center; }

  .hero-triangle {
    top: -50px;
    right: 50%;
    transform: translateX(50%);
  }

  .hero-scroll { display: none; }

  .autore-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    justify-items: center;
  }

  .autore-text { max-width: 100%; }

  .eyebrow { padding-left: 32px; display: inline-block; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .char-grid { grid-template-columns: 1fr; }

  .btn { width: 100%; text-align: center; padding: 16px 20px; }
  .hero-cta { width: 100%; }

  .section-title { max-width: none; }
}

/* ================ CHARACTER PAGE ================ */

.char-page-hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(244, 208, 63, 0.06), transparent 60%),
    var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-top: clamp(120px, 14vw, 180px);
}

.char-page-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

.char-back {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--white);
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: opacity .2s ease, color .2s ease;
}

.char-back:hover { opacity: 1; color: var(--yellow); }

.char-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1c1c1c, #050505 70%);
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
}

.char-portrait::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(244, 208, 63, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.char-portrait-initials {
  font-family: var(--font-display);
  font-size: 110px;
  letter-spacing: 4px;
  color: var(--yellow);
  text-shadow: 0 0 30px rgba(244, 208, 63, 0.3);
}

.char-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.char-page--killer .char-portrait-img {
  filter: grayscale(0.7) contrast(1.1);
}

.char-page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin: 4px 0 16px;
  text-transform: uppercase;
}

.char-page-tagline {
  font-style: italic;
  color: var(--grey);
  font-size: clamp(17px, 1.6vw, 21px);
  margin: 0 0 28px;
  max-width: 56ch;
}

.char-page-text p { max-width: 60ch; }
.char-page-text em { color: var(--yellow-soft); }

.char-id {
  background: var(--bg-elev);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.char-id-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin: 0 0 40px;
  text-transform: uppercase;
}

.char-id-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 56px;
  margin: 0;
}

.char-id-item {
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 20px;
  margin: 0;
}

.char-id-item dt {
  font-family: var(--font-display);
  letter-spacing: 4px;
  font-size: 12px;
  color: var(--white);
  text-transform: uppercase;
  margin: 0 0 6px;
  opacity: 0.7;
}

.char-id-item dd {
  margin: 0;
  font-size: 16px;
  color: var(--white);
  line-height: 1.5;
}

.char-id-item dd em { color: var(--yellow-soft); font-style: italic; }

.char-others {
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.char-others-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: 0.02em;
  color: var(--yellow);
  text-transform: uppercase;
  margin: 0 0 32px;
}

.char-others-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.char-others-list a {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 999px;
  padding: 10px 18px;
  transition: background .2s ease, color .2s ease;
}

.char-others-list a:hover {
  background: var(--yellow);
  color: var(--bg);
}

.char-page--killer .char-portrait {
  border-color: var(--red);
  background: radial-gradient(circle at 30% 30%, #1a0606, #050000 70%);
  box-shadow: 0 30px 60px -20px rgba(230, 57, 70, 0.4);
}

.char-page--killer .char-portrait::before {
  border-color: rgba(230, 57, 70, 0.3);
}

.char-page--killer .char-portrait-initials {
  color: var(--red);
  text-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
  font-style: italic;
}

.char-page--killer .char-page-title {
  color: var(--red);
  font-style: italic;
}

.char-page--killer .char-id-item {
  border-left-color: var(--red);
}

/* ---- Character page: mobile overrides (after base styles to win cascade) ---- */
@media (max-width: 768px) {
  .char-page-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    justify-items: center;
  }

  .char-page-text { max-width: 100%; }
  .char-page-text p { margin-left: auto; margin-right: auto; }
  .char-page-tagline { margin-left: auto; margin-right: auto; }
  .char-id-list { grid-template-columns: 1fr; gap: 22px; }

  .char-page-hero { padding-top: clamp(96px, 18vw, 140px); }

  .char-portrait {
    width: 220px;
    height: 220px;
  }
  .char-portrait-initials { font-size: 86px; }

  .char-back { margin-bottom: 18px; font-size: 12px; letter-spacing: 2.5px; }

  .char-id-title,
  .char-others-title { margin-bottom: 28px; }

  .char-others-list { gap: 10px; margin-bottom: 28px; }
  .char-others-list a { padding: 9px 14px; font-size: 11px; letter-spacing: 2.5px; }
}

@media (max-width: 480px) {
  .char-page-hero { padding-top: clamp(88px, 20vw, 120px); }

  .char-portrait {
    width: 180px;
    height: 180px;
  }
  .char-portrait::before { inset: -6px; }
  .char-portrait-initials { font-size: 72px; }

  .char-page-title { font-size: clamp(34px, 9vw, 44px); }
  .char-page-tagline { font-size: 16px; margin-bottom: 22px; }

  .char-id-item { padding-left: 16px; }
  .char-id-item dd { font-size: 15px; }

  .char-others-list a { padding: 8px 12px; font-size: 10px; }
}

@media (max-width: 360px) {
  .char-portrait {
    width: 150px;
    height: 150px;
  }
  .char-portrait-initials { font-size: 60px; }
}

/* "Scopri →" link inside character cards on the index */
.char-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--yellow);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  padding-bottom: 2px;
}

.char-link::after {
  content: " →";
  display: inline-block;
  margin-left: 6px;
  transition: transform .2s ease;
}

.char-card:hover .char-link { border-color: var(--yellow); }
.char-link:hover { color: var(--yellow-soft); }
.char-card:hover .char-link::after { transform: translateX(4px); }

.char-card--killer .char-link { color: var(--red); }
.char-card--killer:hover .char-link { border-color: var(--red); }

/* Music toggle button (background music) */
.music-toggle {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(244, 208, 63, 0.4);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--yellow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  background: rgba(20, 20, 20, 0.9);
}

.music-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.music-toggle-hint {
  position: fixed;
  right: calc(92px + env(safe-area-inset-right, 0px));
  bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  z-index: 49;
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--white);
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid rgba(244, 208, 63, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  opacity: 0.72;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-toggle:hover ~ .music-toggle-hint,
.music-toggle:focus-visible ~ .music-toggle-hint {
  opacity: 1;
  transform: translateX(-2px);
}

.music-toggle-hint-arrow {
  color: var(--yellow);
  font-size: 13px;
  line-height: 1;
}

.music-toggle-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-bar {
  display: block;
  width: 3px;
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.4);
  transition: transform .2s ease;
}

.music-toggle[aria-pressed="true"] .music-bar {
  animation: music-bounce 1s ease-in-out infinite;
}

.music-toggle[aria-pressed="true"] .music-bar:nth-child(1) { animation-delay: 0s; }
.music-toggle[aria-pressed="true"] .music-bar:nth-child(2) { animation-delay: 0.15s; }
.music-toggle[aria-pressed="true"] .music-bar:nth-child(3) { animation-delay: 0.3s; }
.music-toggle[aria-pressed="true"] .music-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes music-bounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@media (max-width: 600px) {
  .music-toggle {
    width: 48px;
    height: 48px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .music-toggle-icon { height: 16px; }
  .music-toggle-hint {
    right: calc(74px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    font-size: 10px;
    padding: 6px 10px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 360px) {
  .music-toggle-hint {
    display: none;
  }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .char-card { opacity: 1; transform: none; }
  .music-toggle[aria-pressed="true"] .music-bar { animation: none; transform: scaleY(1); }
}
