/* ============================================================
   Carmelo Bot — style.css (shared)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:    #080b13;
  --bg-surface: #0e1220;
  --bg-card:    #111828;
  --bg-hover:   #16202e;

  --blue:       #4ab3e8;
  --blue-dim:   #2d8bbf;
  --blue-glow:  rgba(74,179,232,0.18);
  --blue-faint: rgba(74,179,232,0.07);

  --gold:       #d4a947;
  --gold-lt:    #e8c46a;
  --teal:       #2dd4bf;
  --red:        #e86060;
  --green:      #4de89a;
  --purple:     #a78bfa;

  --text-primary:   #dde4f0;
  --text-secondary: #7a859e;
  --text-muted:     #6c80a2;

  --border:       rgba(74,179,232,0.12);
  --border-hover: rgba(74,179,232,0.35);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease: 0.2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(74,179,232,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 380px;
  background: radial-gradient(ellipse, rgba(74,179,232,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
.navbar {
  position: sticky; top: 0;
  z-index: 40;
  display: flex; align-items: center;
  padding: 0 32px;
  height: 62px;
  background: rgba(8,11,19,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: 36px;
  flex-shrink: 0;
}

.navbar-logo span { color: var(--blue); }

.navbar-links {
  display: flex; align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
}

.navbar-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  background: var(--blue-faint);
}

.navbar-links a.active { color: var(--blue); }

.navbar-cta {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--bg-base);
  background: var(--blue);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  transition: background var(--ease), transform var(--ease);
  flex-shrink: 0;
}

.navbar-cta:hover {
  background: #64c4f5;
  transform: translateY(-1px);
}

/* Container */
.container {
  position: relative; z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

.container--wide { max-width: 1040px; }

a { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: #7dd3f7; }

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(74,179,232,0.10);
  border: 1px solid rgba(74,179,232,0.18);
  color: var(--blue);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Footer */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1rem;
  color: var(--text-primary); margin-bottom: 4px;
}

.footer-brand span { color: var(--blue); }

.footer-meta, .footer-copy {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.6;
}

.footer-links {
  display: flex; gap: 20px; list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--ease);
}

.footer-links a:hover { color: var(--blue); }

@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .navbar-links { display: none; }
  .container { padding: 0 16px 80px; }
  footer { flex-direction: column; align-items: flex-start; padding: 32px 20px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  z-index: 60;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: rgba(8, 11, 19, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 39;
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s var(--ease),
              opacity 0.22s var(--ease),
              visibility 0s 0.22s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.22s var(--ease),
              opacity 0.22s var(--ease),
              visibility 0s 0s;
}

.mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: var(--blue-faint);
}

.mobile-menu a.active { color: var(--blue); }

.mobile-menu .mobile-cta {
  margin-top: 12px;
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--blue);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-md);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 28px;
  z-index: 50;
  width: 42px; height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--ease), transform var(--ease), border-color var(--ease), background var(--ease);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.back-to-top svg {
  width: 16px; height: 16px;
  stroke: var(--text-secondary);
  transition: stroke var(--ease);
}

.back-to-top:hover svg { stroke: var(--bg-base); }

@media (max-width: 640px) {
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .navbar-links { display: none !important; }
  .navbar-cta   { display: none; }
  .back-to-top  { bottom: 20px; right: 16px; }
}

/* Light mode */
:root.light {
  --bg-base:    #f0f4f8;
  --bg-surface: #e2e8f0;
  --bg-card:    #ffffff;
  --bg-hover:   #e8edf5;

  --blue:       #2a7db5;
  --blue-dim:   #1e5f8a;
  --blue-glow:  rgba(42,125,181,0.15);
  --blue-faint: rgba(42,125,181,0.07);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #5f6a7c;

  --border:       rgba(42,125,181,0.15);
  --border-hover: rgba(42,125,181,0.4);
}

:root.light body::before {
  background-image: radial-gradient(rgba(42,125,181,0.07) 1px, transparent 1px);
}

:root.light body::after {
  background: radial-gradient(ellipse, rgba(42,125,181,0.07) 0%, transparent 70%);
}

:root.light .navbar { background: rgba(240,244,248,0.9); }
:root.light .mobile-menu { background: rgba(240,244,248,0.98); }
:root.light .back-to-top { background: var(--bg-card); border-color: var(--border-hover); }
:root.light .back-to-top svg { stroke: var(--text-secondary); }
:root.light .back-to-top:hover { background: var(--blue); border-color: var(--blue); }
:root.light .back-to-top:hover svg { stroke: #fff; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--ease);
  flex-shrink: 0;
  margin-left: 10px;
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-faint);
}

.theme-toggle svg { width: 16px; height: 16px; }

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root.light .theme-toggle .icon-sun  { display: block; }
:root.light .theme-toggle .icon-moon { display: none; }


/* ══════════════════════════════════════════════════════════════
   GUIDE.HTML — Hero, sezioni, tabs, overlay, effetti, problemi
   ══════════════════════════════════════════════════════════════ */

.guide-hero {
  text-align: center;
  padding: 80px 0 60px;
}
.guide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 18px 0 14px;
}
.guide-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}
.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.section-heading p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Tabs piattaforme */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto 16px;
}
.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease);
}
.platform-tab .platform-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent; /* Sfondo trasparente per non mischiare i colori */
}
/* Aggiunta per lo sfondo di SoundCloud nei tab */
.platform-tab[data-platform="soundcloud"] .platform-icon {
  background: #FF5500;
}
.platform-tab .platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mostra tutto il logo senza tagliarlo */
  border-radius: 4px;  /* Arrotonda leggermente gli angoli se il logo è quadrato */
}
.platform-tab:hover {
  color: var(--text-primary);
  border-color: var(--pcolor);
  background: color-mix(in srgb, var(--pcolor) 10%, transparent);
  transform: translateY(-1px);
}
.tabs-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin: 0 auto 56px;
}
.tabs-hint span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: 999px;
}

/* Overlay full-screen */
.platform-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 19, 0.9);
  backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 60px 24px 80px;
}
.platform-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.platform-modal {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-top: 4px solid var(--pcolor, var(--blue));
  border-radius: var(--radius-lg);
  padding: 48px 44px 40px;
  position: relative;
  transform: translateY(24px) scale(0.985);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}
.platform-overlay.open .platform-modal { transform: translateY(0) scale(1); }
.platform-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 201;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.platform-modal-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: rotate(90deg);
}

.platform-panel-content { display: none; }
.platform-panel-content.active { display: block; }

.pf-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.pf-header-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: transparent; /* Sfondo trasparente anche qui */
  flex-shrink: 0;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--pcolor, var(--blue)) 30%, transparent); /* Bagliore più morbido */
}
/* Aggiunta per lo sfondo di SoundCloud nell'overlay */
.platform-panel-content[data-content="soundcloud"] .pf-header-icon {
  background: #FF5500;
}
.pf-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mostra l'intero logo */
  padding: 4px;        /* Margine interno per non farlo toccare i bordi */
  border-radius: 14px; /* Previene la fuoriuscita del rosso di TikTok */
}
.pf-header-text { min-width: 0; }
.pf-header-text h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.pf-header-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.pf-header-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  transition: all var(--ease);
  flex-shrink: 0;
}
.pf-header-link:hover {
  border-color: var(--pcolor, var(--blue));
  color: var(--pcolor, var(--blue));
}

.pf-section { margin-top: 32px; }
.pf-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.pf-section-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.pf-section-body p + p { margin-top: 10px; }
.pf-section-body ul { padding-left: 20px; margin: 10px 0; }
.pf-section-body li { margin-bottom: 7px; }
.pf-section-body strong { color: var(--text-primary); }
.pf-section-body code { font-size: 0.85em; }

.pf-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.pf-example-input,
.pf-example-output {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  position: relative;
}
.pf-example-input {
  background: rgba(74,179,232,0.06);
  border: 1px solid rgba(74,179,232,0.22);
  color: var(--blue);
}
.pf-example-output {
  background: rgba(77,232,154,0.06);
  border: 1px solid rgba(77,232,154,0.22);
  color: var(--text-primary);
}
.pf-example-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  margin-bottom: 5px;
  opacity: 0.7;
}
.pf-example-input .pf-example-label { color: var(--blue); }
.pf-example-output .pf-example-label { color: var(--green); }

.pf-no {
  background: rgba(232,196,106,0.05);
  border: 1px solid rgba(232,196,106,0.2);
  border-left: 3px solid #e8c46a;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.88rem;
  line-height: 1.65;
}
.pf-no ul { padding-left: 0; margin: 0; list-style: none; }
.pf-no li {
  padding-left: 22px;
  margin-bottom: 8px;
  position: relative;
  color: var(--text-secondary);
}
.pf-no li:last-child { margin-bottom: 0; }
.pf-no li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  color: #e8c46a;
  font-weight: 700;
  font-size: 0.85em;
}
.pf-no strong { color: var(--text-primary); }

.pf-error {
  background: rgba(232,96,96,0.05);
  border: 1px solid rgba(232,96,96,0.2);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.pf-error-msg {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--red);
  margin-bottom: 6px;
  font-weight: 500;
}
.pf-error-fix {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.pf-error-fix strong { color: var(--text-primary); }

/* Panoramica */
.pf-overview { max-width: 880px; margin: 0 auto 80px; }
.pf-overview-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.85rem;
}
.pf-overview-table thead tr {
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.pf-overview-table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.pf-overview-table tbody tr {
  border-bottom: 1px solid rgba(74,179,232,0.06);
  transition: background var(--ease);
}
.pf-overview-table tbody tr:last-child { border-bottom: none; }
.pf-overview-table tbody tr:hover { background: var(--bg-hover); }
.pf-overview-table td {
  padding: 14px 18px;
  color: var(--text-secondary);
  vertical-align: middle;
  line-height: 1.55;
}
.pf-overview-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.pf-overview-table td code { font-size: 0.82em; }

/* Effetti audio */
.effects-section { max-width: 880px; margin: 0 auto 80px; }
.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.effect-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color var(--ease);
}
.effect-card:hover { border-color: var(--border-hover); }
.effect-emoji { font-size: 1.15rem; line-height: 1.2; flex-shrink: 0; }
.effect-body { min-width: 0; }
.effect-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 3px;
}
.effect-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.effects-note {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.effects-note strong { color: var(--text-primary); }

/* Problemi comuni */
.troubleshoot-section { max-width: 880px; margin: 0 auto 100px; }
.troubleshoot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.troubleshoot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tc, var(--blue));
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color var(--ease);
}
.troubleshoot-item:hover {
  border-color: var(--border-hover);
  border-left-color: var(--tc, var(--blue));
}
.troubleshoot-q {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.troubleshoot-q::before { content: '❓'; flex-shrink: 0; }
.troubleshoot-a {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 22px;
}
.troubleshoot-a code { font-size: 0.85em; }
.troubleshoot-msg {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--red);
  background: rgba(232,96,96,0.08);
  border: 1px solid rgba(232,96,96,0.2);
  border-radius: 4px;
  padding: 1px 7px;
  margin-right: 4px;
}


/* ══════════════════════════════════════════════════════════════
   LISTEN INLINE — player audio dentro i pannelli piattaforma
   ══════════════════════════════════════════════════════════════ */

.listen-inline {
  margin: 24px 0 8px;
}

.listen-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.listen-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--pcolor, var(--blue));
  border-radius: var(--radius-md);
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.listen-card:hover {
  border-color: var(--border-hover);
  border-left-color: var(--pcolor, var(--blue));
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.listen-info {
  flex: 1;
  min-width: 0;
}
.listen-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listen-artist {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listen-play {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pcolor, var(--blue));
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--pcolor, var(--blue)) 40%, transparent);
}
.listen-play:hover {
  opacity: 0.92;
  transform: scale(1.06);
}
.listen-play.playing {
  background: var(--bg-card);
  color: var(--pcolor, var(--blue));
  box-shadow: inset 0 0 0 2px var(--pcolor, var(--blue));
}
.listen-play.playing .icon-play  { display: none; }
.listen-play.playing .icon-pause { display: block !important; }
.listen-play.missing {
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: inset 0 0 0 2px var(--border);
  opacity: 0.7;
}
.listen-play.missing:hover {
  transform: none;
  opacity: 0.7;
}
.listen-play.missing svg { display: none !important; }
.listen-play.missing::after {
  content: '⏳';
  font-size: 1rem;
}

.listen-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.05);
}
.listen-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--pcolor, var(--blue));
  transition: width 0.15s linear;
}

/* Stili per i loghi nella tabella Panoramica */
.pf-platform-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}
.pf-table-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Effetti audio (select dentro la listen-card) ── */
.fx-control {
  flex-shrink: 0;
  position: relative;
}
.fx-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a859e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 32px 9px 16px;
  max-width: 170px;
  cursor: pointer;
  outline: none;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}
.fx-select:hover,
.fx-select:focus-visible {
  color: var(--text-primary);
  border-color: var(--pcolor, var(--blue));
}
.fx-select:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pcolor, var(--blue)) 25%, transparent);
}
.fx-select.active {
  color: var(--pcolor, var(--blue));
  border-color: var(--pcolor, var(--blue));
  background-color: color-mix(in srgb, var(--pcolor, var(--blue)) 10%, var(--bg-card));
}
.fx-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fx-select option {
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
}

/* ── Volume slider ── */
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}
.volume-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: color var(--ease);
}
.volume-btn:hover {
  color: var(--text-primary);
}
.volume-slider {
  -webkit-appearance: none;
  width: 60px;
  height: 4px;
  background: var(--border-hover);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pcolor, var(--blue));
  cursor: pointer;
  transition: transform 0.1s;
}
.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pcolor, var(--blue));
  cursor: pointer;
  border: none;
}

@media (max-width: 640px) {
  .listen-grid { grid-template-columns: 1fr; }
  .platform-overlay { padding: 50px 12px 60px; }
  .platform-modal { padding: 32px 22px 28px; }
  .platform-modal-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .pf-header { flex-wrap: wrap; }
  .pf-header-link { margin-left: 0; }
  .pf-example { grid-template-columns: 1fr; }
  .effects-grid { grid-template-columns: 1fr 1fr; }
  .pf-overview-table th:nth-child(3),
  .pf-overview-table td:nth-child(3) { display: none; }
  .volume-slider { width: 45px; }
  .listen-card { flex-wrap: wrap; row-gap: 12px; }
  .listen-info { flex: 1 1 100%; }
  .fx-control { flex: 1 1 auto; }
  .fx-select { width: 100%; max-width: none; }
  .volume-control { margin-right: 0; }
}