/* =========================================================
   La Pipol Broadcast Player v4.1 Final Production Rev.3
   Ajustes exclusivos para smartphone:
   - Alineación uniforme de botones de transporte.
   - Iconos, etiquetas y LEDs centrados en el mismo eje.
   - Texto PLUS más grande sin romper la cuadrícula.
   Desktop permanece intacto.
   ========================================================= */
@media (max-width: 767px) {
  /* Controles: cuadrícula estable y botones idénticos */
  .controls-module .transport-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 5px !important;
    height: 78px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .controls-module .metal-button {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Etiquetas PLAY/STOP/PAUSA/MUTE */
  .controls-module .metal-button small {
    position: absolute !important;
    top: 4px !important;
    left: 0 !important;
    right: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 13px !important;
    line-height: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 7.5px !important;
    font-weight: 800 !important;
    letter-spacing: .015em !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  /* Cara metálica, simétrica en los cuatro botones */
  .controls-module .metal-button::before {
    top: 19px !important;
    bottom: auto !important;
    left: 7px !important;
    right: 7px !important;
    width: auto !important;
    height: 36px !important;
    box-sizing: border-box !important;
  }
  .controls-module .metal-button::after {
    top: 20px !important;
    left: 9px !important;
    right: 9px !important;
    width: auto !important;
    height: 10px !important;
  }

  /* Todos los iconos comparten el mismo centro geométrico */
  .controls-module .metal-button .icon {
    position: absolute !important;
    top: 28px !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    transform-origin: center !important;
  }
  .controls-module .metal-button .play {
    width: 18px !important;
    height: 19px !important;
  }
  .controls-module .metal-button .stop {
    top: 30px !important;
    width: 15px !important;
    height: 15px !important;
  }
  .controls-module .metal-button .pause {
    width: 18px !important;
    height: 19px !important;
  }
  .controls-module .metal-button .pause::before,
  .controls-module .metal-button .pause::after {
    width: 5px !important;
    height: 19px !important;
    margin: 0 1.5px !important;
  }
  .controls-module .metal-button .speaker {
    top: 29px !important;
    width: 19px !important;
    height: 17px !important;
  }

  /* LEDs centrados y a igual distancia del borde */
  .controls-module .metal-button .led {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 5px !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
  }

  /* PLUS: nombres más legibles sin perder alineación */
  .plus-module.feature-module {
    align-items: stretch !important;
  }
  .plus-module .feature-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 2px 4px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
  .plus-module #shareBtn {
    font-size: 9px !important;
  }
}

@media (max-width: 380px) {
  .controls-module .transport-grid { gap: 3px !important; }
  .controls-module .metal-button small { font-size: 7px !important; }
  .plus-module .feature-btn { font-size: 9px !important; padding: 2px !important; }
  .plus-module #shareBtn { font-size: 8px !important; }
}
