/* ====================================================================
   OMNICONTRAST — LINK IN BIO MAIN STYLESHEET (CLEAN REFACTOR)
   ==================================================================== */

:root {
  --bg-color: #000000;
  --card-bg: #121214;
  --card-hover: #1c1c1e;
  --text-main: #ffffff;
  --text-muted: #8e8e93;
  --accent: #fa233b;
  --border-radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  width: 100%;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 0 16px;
}

/* ====================================================================
   HERO HEADER (FULL BLEED + TESTO CENTRATO IN BASSO)
   ==================================================================== */

.hero-header {
  position: relative;
  width: 100%;
  padding-top: 480px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.2) 40%, 
    rgba(0, 0, 0, 0.9) 80%, 
    #000000 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artist-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-align: center;
}

.artist-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 320px;
  line-height: 1.4;
  margin: 0 auto 20px auto;
  text-align: center;
}

/* Riga icone social */
.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s, transform 0.2s;
}

.social-icon-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.social-icon-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ====================================================================
   SECTIONS & BASE TRACK CARDS
   ==================================================================== */
.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 28px 0 12px 4px;
}

details.track-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

summary {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

summary::-webkit-details-marker,
summary::marker {
  display: none;
}

.track-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #2c2c2e;
}

.track-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.track-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.track-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.more-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.2s;
}

details[open] .more-icon {
  transform: rotate(180deg);
}

.stream-menu {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 16px;
}

.stream-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.stream-btn:last-child { border-bottom: none; }

.stream-btn span.action {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.direct-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.direct-card:hover { background: var(--card-hover); }

/* ====================================================================
   FEATURED RELEASE — HERO CARD
   ==================================================================== */
details.track-card.featured-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s;
}

details.track-card.featured-card summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  gap: 12px;
  cursor: pointer;
}

.featured-card .featured-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.featured-card .track-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 100%;
}

.featured-card .track-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.featured-card .track-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.featured-card .more-icon {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

details[open].featured-card .more-icon {
  transform: rotate(180deg);
}

/* ====================================================================
   ADATTAMENTO TABLET E DESKTOP (iPAD / SCHERMI LARGHI)
   ==================================================================== */
@media (min-width: 768px) {
  .hero-header {
    height: 100vh; /* Occupa l'intera altezza dello schermo per eliminare lo zoom orizzontale */
    min-height: 850px; /* Estende l'immagine verso il basso nei display landscape */
    padding-top: 0;
    padding-bottom: 40px;
    justify-content: flex-end;
  }

  .hero-bg img {
    object-position: center top; /* Ancora l'immagine in alto mantenendo la proporzione della testa */
  }

  .hero-bg::after {
    background: linear-gradient(
      180deg, 
      rgba(0, 0, 0, 0) 0%, 
      rgba(0, 0, 0, 0.2) 40%, 
      rgba(0, 0, 0, 0.85) 75%, 
      #000000 100%
    );
  }
}
