/* ============================================================
   AydrA — Icon of Sin Reissue 2026 — EPK Web
   Dark wireframe neutro. Skin sostituibile dopo (variabili CSS).
   ============================================================ */

:root {
  --bg: #0a0708;
  --bg-elev: rgba(20, 14, 12, 0.78);
  --bg-elev-2: rgba(35, 22, 18, 0.85);
  --border: #3a2a22;
  --text: #efe6dd;
  --text-dim: #a89788;
  --accent: #c97a3e;         /* arancione bruciato, allineato alla cover */
  --accent-soft: #8a4a25;
  --accent-deep: #6a3618;
  --link: #e9b07a;
  --highlight: #ffd9a8;
  --danger: #ff6b6b;
  --maxw: 1280px;
  --sidebar-w: 240px;
  --topbar-h: 72px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Times New Roman", "Cormorant Garamond", Georgia, serif;
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(10, 7, 8, 0.45) 0%, rgba(10, 7, 8, 0.65) 100%),
    url('../images/fondale.jpg');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center top, center center;
  background-attachment: fixed, fixed;
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--highlight); text-decoration: underline; }

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(10, 7, 8, 0.95), rgba(10, 7, 8, 0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.18)); }
.album-title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; letter-spacing: 0.02em; }
.album-meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

.topbar-right { display: flex; align-items: center; gap: 16px; }

.flash-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--accent);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.flash-banner:hover { color: #fff; text-decoration: none; transform: translateY(-1px); }
.flash-banner .score { font-size: 0.95rem; }
.flash-banner .score-source { opacity: 0.85; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 6px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle button.active { background: var(--accent); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.lang-toggle button:hover:not(.active) { color: var(--text); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- LAYOUT ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: var(--maxw);
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: rgba(10, 7, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px 0;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li a {
  display: block;
  padding: 9px 24px;
  color: var(--text-dim);
  border-left: 3px solid transparent;
  font-size: 0.92rem;
  transition: all 0.15s;
}
.sidebar li a:hover { color: var(--text); background: var(--bg-elev-2); text-decoration: none; }
.sidebar li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--bg-elev-2);
}

.content { padding: 32px 40px 80px; min-width: 0; }

/* ---------- SECTIONS ---------- */
section {
  scroll-margin-top: calc(var(--topbar-h) + 16px);
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: 0; }
section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  margin: 24px 0 12px;
  letter-spacing: 0.02em;
}

p { margin: 0 0 14px; }

.hint { color: var(--text-dim); font-size: 0.88rem; font-style: italic; }
.hint code { background: var(--bg-elev-2); padding: 1px 6px; border-radius: 3px; font-size: 0.85rem; color: var(--accent); }

/* ---------- HOME / HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.hero-cover {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 122, 62, 0.1);
}
.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: right;
}
.cover-placeholder {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 20px;
  line-height: 1.6;
}
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem; font-weight: 700; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  margin: 8px 0 6px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.hero h1 .dot { color: var(--accent); margin: 0 0.2em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.subtitle { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 22px; }

.key-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.key-facts li {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
}
.key-facts strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 2px;
  font-weight: 700;
}

.lead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.quick-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.quick-card h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.quick-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.45;
}
.quick-card blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ---------- ALBUM / PULL QUOTE ---------- */
.pull-quote {
  margin: 24px 0;
  padding: 20px 26px;
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ---------- TRACKLIST ---------- */
.tracklist-section { margin-bottom: 36px; }
ol.tracks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
ol.tracks li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
ol.tracks li > .track-meta { grid-column: 2; font-size: 0.82rem; color: var(--text-dim); margin-top: -4px; }
ol.tracks li > audio { grid-column: 1 / -1; width: 100%; height: 36px; margin-top: 6px; filter: invert(0.85) hue-rotate(180deg); }
ol.tracks .num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
ol.tracks .track-name { font-size: 1.02rem; font-weight: 500; }
ol.tracks .track-name em { color: var(--text-dim); font-size: 0.85rem; font-style: italic; margin-left: 6px; }

/* ---------- LYRICS ---------- */
.lyric {
  margin: 24px 0 36px;
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lyric h3 { margin: 0 0 4px; color: var(--text); }
.lyric-credit { color: var(--text-dim); font-size: 0.82rem; font-style: italic; margin: 0 0 14px; }
.lyric pre {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 0;
  color: var(--text);
}

/* ---------- BAND / LINE-UP ---------- */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.lineup-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.lineup-block h3 { margin-top: 0; }
.lineup-block ul { list-style: none; padding: 0; margin: 0; }
.lineup-block li { padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.lineup-block li:last-child { border-bottom: 0; }

/* ---------- TABLES ---------- */
.bonus-table, .release-table, .credits-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.92rem;
}
.bonus-table th, .bonus-table td,
.release-table th, .release-table td,
.credits-table th, .credits-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.bonus-table th, .credits-table thead th {
  background: var(--bg-elev);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.release-table th {
  width: 32%;
  background: var(--bg-elev);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copyright {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ---------- DISCOGRAPHY ---------- */
.discography {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.discography li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.discography .year {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.discography .meta {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 4px;
}
.discography li.highlight {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
  padding-left: 14px;
  margin-left: -14px;
  border-radius: var(--radius);
}

/* ---------- RELEASES ---------- */
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 12px 0 28px;
}
.release-card {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.release-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.release-card a { display: block; line-height: 0; }
.release-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.18s;
}
.release-card:hover img { opacity: 0.92; }
.release-card figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
}
.release-card figcaption strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.release-card .release-meta {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.release-card .release-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.release-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 122, 62, 0.3), 0 8px 24px rgba(0,0,0,0.45);
}

/* Single-card row: prevent grid auto-fit from stretching the card huge */
.release-grid-single {
  grid-template-columns: 400px;
  justify-content: start;
}
.release-grid-single .release-card figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
}
.release-grid-single .release-card figcaption strong {
  font-size: 0.86rem;
}
.release-grid-single .release-card .release-meta {
  font-size: 0.72rem;
}
.release-grid-single .release-card .release-tag {
  font-size: 0.62rem;
  padding: 2px 6px;
}

/* Cassette-specific grid: more columns, smaller cards, vertical rectangles
   that match real cassette cover aspect ratio (~2:3) without cropping */
.release-grid-mc {
  grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
  gap: 14px;
}
.release-grid-mc .release-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.release-grid-mc .release-card figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
}
.release-grid-mc .release-card figcaption strong {
  font-size: 0.86rem;
}
.release-grid-mc .release-card .release-meta {
  font-size: 0.72rem;
}

/* ---------- PHOTOS ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 32px;
}
.photo-grid-1999 {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: stretch;
}
.photo-grid-1999 .photo-feature {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}
.photo-grid-2026 {
  grid-template-columns: repeat(4, 1fr);
}
.photo-grid-2026 .photo-feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}
@media (max-width: 760px) {
  .photo-grid-1999 { grid-template-columns: 1fr 1fr; }
  .photo-grid-1999 .photo-feature { grid-row: span 1; grid-column: 1 / -1; }
  .photo-grid-2026 { grid-template-columns: 1fr 1fr; }
  .photo-grid-2026 .photo-feature { grid-row: span 1; grid-column: 1 / -1; }
}
.photo-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot.empty img { display: none; }
.photo-slot.empty::before {
  content: "📷";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 2.5rem;
  opacity: 0.3;
}
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text);
  font-size: 0.78rem;
}

/* ---------- IN MEMORIAM ---------- */
.memoriam-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 12px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.memoriam-photo {
  margin: 0;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.memoriam-photo img { display: block; width: 100%; height: auto; }
.memoriam-photo figcaption {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  background: rgba(0, 0, 0, 0.4);
}
.memoriam-text p { margin: 0; }
@media (max-width: 760px) {
  .memoriam-block { grid-template-columns: 1fr; }
}

/* ---------- VIDEOS ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 16px 0 32px;
}
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
}
.video-slot {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.video-slot iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.video-slot figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.video-slot figcaption strong {
  color: var(--text);
  font-size: 0.95rem;
  display: inline-block;
  margin-right: 4px;
}
.yt-fallback {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(201, 122, 62, 0.15);
  border: 1px solid var(--accent-soft);
  border-radius: 3px;
  color: var(--link);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.yt-fallback:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}
.video-slot.empty {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

/* Featured video — single, larger, accent border */
.video-grid-featured {
  grid-template-columns: minmax(0, 720px);
  margin-bottom: 32px;
}

/* Single video card (archive section): take 1 column (= half the 2-column grid)
   so it matches the others in size */
.video-grid-single {
  grid-template-columns: repeat(2, 1fr);
}
.video-slot.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 122, 62, 0.25), 0 10px 30px rgba(0,0,0,0.5);
}
.video-slot.featured figcaption {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(201, 122, 62, 0.08), transparent);
}
.video-slot.featured figcaption strong {
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.video-placeholder {
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
}
.video-placeholder strong {
  color: var(--text);
  font-style: normal;
  font-size: 1.05rem;
}
.video-placeholder .video-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---------- PRESS QUOTES ---------- */
.quotes-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.quotes-tabs .tab {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 10px 16px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.quotes-tabs .tab:hover { color: var(--text); }
.quotes-tabs .tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.quotes-pane { display: none; }
.quotes-pane.active { display: block; }

.quote {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px 18px 70px;
  margin-bottom: 12px;
}
.quote.featured { border-color: var(--accent); background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), var(--bg-elev)); }
.quote-score {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 50px;
  text-align: center;
  font-family: var(--font-display);
}
.quote-score .score-num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.quote-score .score-out { display: block; font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.awards { list-style: none; padding: 0; margin: 12px 0 0; }
.awards li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.awards li:last-child { border-bottom: 0; }

/* ---------- LINKS ---------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.links-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.links-block h3 { margin-top: 0; }
.links-block ul { list-style: none; padding: 0; margin: 0; }
.links-block li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.links-block li:last-child { border-bottom: 0; }
.links-block li em { color: var(--text-dim); font-style: italic; font-size: 0.85rem; }

/* ---------- DOWNLOAD ---------- */
/* ---------- ARTWORK ---------- */
.artwork-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201, 122, 62, 0.4); color: #fff; text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--accent-soft);
}
.btn-secondary:hover { background: rgba(201, 122, 62, 0.12); color: var(--highlight); text-decoration: none; }

.artwork-viewer {
  position: relative;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 820px;
  margin: 14px 0 12px;
}
.artwork-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 760px) {
  .artwork-viewer { height: 540px; }
}

/* Artwork thumbs grid */
.artwork-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 32px;
}
.art-thumb {
  margin: 0;
  padding: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  font: inherit;
  color: var(--text);
  text-align: left;
}
.art-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}
.art-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #000;
}
.art-thumb-label {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 56px 24px;
  box-sizing: border-box;
}
.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display: block;
  box-shadow: 0 12px 60px rgba(0,0,0,0.7);
}
.lb-caption {
  margin-top: 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.03em;
  max-width: 90vw;
}
.lb-btn {
  position: absolute;
  background: rgba(15, 10, 8, 0.7);
  color: var(--text);
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 300;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s, transform 0.12s;
  z-index: 1;
}
.lb-btn:hover { background: var(--accent); color: #fff; transform: scale(1.06); }
.lb-close { top: 18px; right: 22px; }
.lb-prev  { top: 50%; left: 22px;  transform: translateY(-50%); }
.lb-next  { top: 50%; right: 22px; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 760px) {
  .lb-stage { padding: 56px 16px 20px; }
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 1.3rem; }
  .lb-close { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ---------- DOWNLOAD ---------- */
.download-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  margin: 12px 0 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.download-btn.disabled {
  background: var(--bg-elev-2);
  color: var(--text-dim);
  pointer-events: none;
  cursor: not-allowed;
}
.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.download-list li:last-child { border-bottom: 0; }
.download-list em { color: var(--text-dim); font-style: italic; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}
.download-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.download-block h4 {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.download-block .hint { font-size: 0.8rem; }

/* ---------- FOOTER ---------- */
.bottom {
  border-top: 1px solid var(--border);
  background: rgba(10, 7, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- TABLE WRAPPER (responsive horizontal scroll) ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cover { max-width: 320px; margin: 0 auto; }
  .key-facts { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 60px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .album-meta { display: none; }
  .album-title { font-size: 1.05rem; }
  .brand-logo { height: 32px; }
  .brand { gap: 8px; min-width: 0; flex: 1; }
  .brand-text { min-width: 0; overflow: hidden; }
  .topbar-right { gap: 8px; }
  .flash-banner { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }

  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: 80%;
    max-width: 280px;
    height: calc(100vh - var(--topbar-h));
    transform: translateX(-100%);
    transition: transform 0.25s;
    z-index: 90;
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 18px 16px 60px; }

  section h2 { font-size: 1.5rem; }
  section h3 { font-size: 1.15rem; }
  .hero h1 { font-size: 1.85rem; }
  .subtitle { font-size: 0.95rem; }

  /* Hero on mobile: cover slightly smaller */
  .hero-cover { max-width: 280px; }

  /* Tables: smaller fonts on narrow screens */
  .release-table, .credits-table, .bonus-table { font-size: 0.85rem; }
  .release-table th { width: auto; min-width: 130px; }
  .release-table th, .release-table td,
  .credits-table th, .credits-table td,
  .bonus-table th, .bonus-table td { padding: 8px 10px; }
  .credits-table, .bonus-table { min-width: 540px; }

  /* Tracklist player: row layout adjustments */
  ol.tracks li { grid-template-columns: 28px 1fr; gap: 10px; }
  ol.tracks .num { font-size: 0.95rem; }
  ol.tracks .track-name { font-size: 0.95rem; }
  ol.tracks li > audio { height: 32px; }

  /* Press quote: less padding for score badge on narrow */
  .quote { padding: 16px 18px 16px 60px; }
  .quote-score { width: 42px; left: 8px; }
  .quote-score .score-num { font-size: 1.35rem; }
  .quote blockquote { font-size: 1rem; }
  .quotes-tabs { flex-wrap: wrap; }

  /* Lyric block: tighten */
  .lyric { padding: 16px 18px; }
  .lyric pre { font-size: 0.95rem; line-height: 1.5; }

  /* Discography: year column smaller proportionally */
  .discography li { grid-template-columns: 70px 1fr; gap: 12px; }
  .discography .year { font-size: 1.05rem; }

  /* Releases highlight upcoming card: don't exceed viewport */
  .release-grid-single { grid-template-columns: minmax(0, 100%); }

  /* Featured video: keep full width */
  .video-grid-featured { grid-template-columns: minmax(0, 1fr); }

  /* Hero quick cards: stack */
  .quick-grid { grid-template-columns: 1fr; }

  /* Memoriam */
  .memoriam-block { padding: 14px 16px; }

  /* Pull quote inside album section */
  .pull-quote { padding: 16px 18px; font-size: 1.08rem; }

  /* Footer */
  .footer-inner { padding: 0 18px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .album-title { font-size: 0.95rem; }
  .brand-logo { height: 28px; }
  .lang-toggle button { padding: 5px 9px; font-size: 0.8rem; }
  .menu-toggle { width: 32px; height: 32px; font-size: 1rem; }

  section h2 { font-size: 1.35rem; }
  .hero h1 { font-size: 1.6rem; }
  .kicker { font-size: 0.7rem; }

  .content { padding: 16px 14px 50px; }

  /* Releases / videos / photos: tighter gaps */
  .release-grid, .photo-grid, .video-grid { gap: 12px; }
  .download-grid { gap: 12px; }
  .download-block { padding: 12px 14px; }

  /* Tables truly narrow */
  .release-table, .credits-table, .bonus-table { font-size: 0.78rem; }
  .release-table th { min-width: 110px; }

  /* Photos grid 1999: full collapse */
  .photo-grid-1999 { grid-template-columns: 1fr; }
  .photo-grid-1999 .photo-feature { grid-row: span 1; grid-column: 1; }

  /* Lyrics smaller font */
  .lyric pre { font-size: 0.9rem; }
}

/* ---------- LANG VISIBILITY (ridondante con [hidden] ma robusto) ---------- */
[data-current-lang="it"] [data-lang="en"] { display: none; }
[data-current-lang="en"] [data-lang="it"] { display: none; }

/* ============================================================
   THEME OVERRIDE — Hyperlogical Non-Sense (cover: Loretta Militano)
   Terracotta / ocra su grigio-oliva della copertina.
   ============================================================ */
:root {
  --bg: #0a0908;
  --bg-elev: rgba(22, 19, 15, 0.80);
  --bg-elev-2: rgba(34, 28, 22, 0.86);
  --border: #37312a;
  --text: #ece5d9;
  --text-dim: #ad9f8d;
  --accent: #c86a34;
  --accent-soft: #8c4720;
  --accent-deep: #653216;
  --link: #dd9256;
  --highlight: #f3c69c;
}
body {
  background-image:
    linear-gradient(180deg, rgba(8, 7, 6, 0.84) 0%, rgba(8, 7, 6, 0.93) 100%),
    url('../images/cover.jpg');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center top, center center;
  background-attachment: fixed, fixed;
}

/* Mobile: background-attachment fixed non è affidabile su iOS/Android → scroll */
@media (max-width: 760px) {
  body { background-attachment: scroll, scroll; }
}
