
/* BRUNO MARRO - HIT SINGLE BANNER PLAYER */
/* Tutte le regole sono circoscritte al componente */


/* Posiziona il banner in fondo alla fotografia */
#carousel-example-generic .carousel-inner > .item.active {
  position: relative;
}

#bm-hit-banner {
  --hit-bg: rgb(63, 213, 244);
  --hit-text: #ffffff;
  --hit-accent: #ffffff;
  --hit-button-bg: rgba(50, 191, 10, 0.55);
  --hit-button-text: #ffffff;
  

  position: absolute;
  z-index: 20;
  bottom: 0;
  left: 0;
  width: 100%;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;

  margin: 0;
  padding: 13px 18px;

  background: var(--hit-bg);
  color: var(--hit-text);
  border-top: 2px solid var(--hit-accent);

  font-family: 'Lato', sans-serif;
  box-sizing: border-box;
}

#bm-hit-banner *,
#bm-hit-banner *::before,
#bm-hit-banner *::after {
  box-sizing: border-box;
}

#bm-hit-banner .bm-hit-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}

#bm-hit-banner .bm-hit-label {
  color: var(--hit-accent);
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.4;
}

#bm-hit-banner .bm-hit-title {
  color: var(--hit-text);
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

#bm-hit-banner .bm-hit-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#bm-hit-banner .bm-hit-controls button {
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;

  background: var(--hit-button-bg);
  color: var(--hit-button-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  font-size: 14px;
  line-height: 1;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.2s ease;
}

#bm-hit-banner .bm-hit-controls button:hover {
  background: var(--hit-accent);
  color: #111111;
  transform: scale(1.06);
}

#bm-hit-banner button:focus-visible,
#bm-hit-banner input:focus-visible {
  outline: 2px solid var(--hit-accent);
  outline-offset: 3px;
}

#bm-hit-banner .bm-hit-progress {
  display: grid;
  grid-template-columns: 35px minmax(65px, 180px) 35px;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

#bm-hit-banner .bm-hit-progress span {
  color: var(--hit-text);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#bm-hit-banner .bm-hit-progress span:last-child {
  text-align: right;
}

#bm-hit-banner .bm-hit-progress input,
#bm-hit-banner .bm-hit-volume input {
  appearance: none;
  -webkit-appearance: none;

  display: block;
  min-width: 0;
  height: 5px;
  margin: 0;
  padding: 0;

  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 10px;
  accent-color: var(--hit-accent);
  cursor: pointer;
}

#bm-hit-banner .bm-hit-progress input {
  width: 100%;
}

#bm-hit-banner .bm-hit-progress input::-webkit-slider-thumb,
#bm-hit-banner .bm-hit-volume input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--hit-accent);
  border: 0;
  border-radius: 50%;
}

#bm-hit-banner .bm-hit-progress input::-moz-range-thumb,
#bm-hit-banner .bm-hit-volume input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--hit-accent);
  border: 0;
  border-radius: 50%;
}

#bm-hit-banner .bm-hit-volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--hit-accent);
}

#bm-hit-banner .bm-hit-volume input {
  width: 75px;
}

/* TABLET */
@media (max-width: 767px) {
  #bm-hit-banner {
    gap: 10px 15px;
    padding: 12px;
  }

  #bm-hit-banner .bm-hit-title {
    font-size: 16px;
  }

  #bm-hit-banner .bm-hit-progress {
    grid-template-columns: 32px minmax(50px, 140px) 32px;
  }
}

/* SMARTPHONE */
@media (max-width: 480px) {
  #bm-hit-banner {
    gap: 8px 10px;
    padding: 10px 8px;
  }

  #bm-hit-banner .bm-hit-info {
    flex: 1 1 100%;
    min-width: 0;
    text-align: center;
  }

  #bm-hit-banner .bm-hit-label {
    font-size: 9px;
    letter-spacing: 2px;
  }

  #bm-hit-banner .bm-hit-title {
    font-size: 15px;
  }

  #bm-hit-banner .bm-hit-controls {
    gap: 6px;
  }

  #bm-hit-banner .bm-hit-controls button {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  #bm-hit-banner .bm-hit-progress {
    flex: 1 1 150px;
    grid-template-columns: 30px minmax(40px, 1fr) 30px;
    gap: 5px;
  }

  #bm-hit-banner .bm-hit-volume input {
    width: 55px;
  }
}