/*.player {*/
/*  padding: 1vw;*/
/*}*/


/*.player-cover-image {*/
/*  ;*/
/*  animation: bga 60s linear infinite;*/
/*}*/

/*@keyframes bga {*/
/*  50% {*/
/*    transform: scale(2)*/
/*  }*/
/*}*/

/*.items-start {*/
/*  align-items: flex-start;*/
/*  margin-top: 15px;*/
/*}*/

.player-button {
  font-weight: 700;
}

.player-program {

  background-image: linear-gradient(transparent, rgb(0 0 0 / 98%));

}

.player-program-badge {
  font-weight: 700;
}


/* Mejoras para el historial */
.history-item {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.history-image img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.color-text-small {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* Logo más grande en móvil */
@media (max-width: 991px) {
  .header-logo-img {
    height: 60px !important;
    max-height: 60px !important;
  }
  
  /* Header rojo en móvil */
  .header {
    background-color: red !important;
  }
}

/* Estilos para botones de descarga de apps - Manteniendo consistencia con el diseño */
/* (Estilos removidos - ya no se usan los botones pequeños del header) */

/* Grupo de botones en header */
.btn-group {
  gap: 0.5rem;
  align-items: center;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
}

/* Asegurar que toggle-options esté alineado correctamente */
.toggle-options {
  align-items: center !important;
  display: flex !important;
  flex-direction: row !important;
}

/* Botón de descarga en Player - Usando exactamente el mismo estilo que player-button */
.download-trigger-btn {
  /* Hereda automáticamente todos los estilos de .player-button */
  /* Solo necesitamos asegurar que use la clase .player-button */
}

/* El botón de descarga hereda automáticamente todos los estilos de .player-button */

/* El botón de descarga hereda automáticamente todos los estilos responsivos de .player-button */

/* Animaciones para el modal de descarga */
.download-social-section {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-social-section.is-active {
  animation: modalBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalBounce {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Overlay con animación suave */
.download-overlay {
  transition: opacity 0.3s ease;
}

/* Mejoras visuales para el modal */
.download-social-section {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Centrar elementos del programa */
.player-program-name {
  text-align: center;
  width: 100%;
}

.player-program-description {
  text-align: center;
  width: 100%;
}


/* Animación de entrada - Usando variables del sistema */
/* (Animación removida - ya no se usan los botones pequeños del header) */

/* Sección de descarga y redes sociales - Posicionada entre carátula y player */
.download-social-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  background: var(--player-bg-dark);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: var(--main-padding);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 90%;
  animation: fadeInScale calc(var(--duration) * 2) ease-out;
  display: none; /* Oculto por defecto, se mostrará con JavaScript */
}

.download-social-section.is-active {
  display: block;
}

/* Sección principal de descarga de apps - Usando variables del sistema (mantener para compatibilidad) */
.download-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  background: var(--player-bg-dark);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: var(--main-padding);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  animation: fadeInScale calc(var(--duration) * 2) ease-out;
  display: none; /* Oculto por defecto, se mostrará con JavaScript */
}

.download-section.is-active {
  display: block;
}

.download-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Sección de redes sociales */
.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-title);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  background-color: var(--player-bg-transparent);
  padding: 0.75rem 1rem;
  color: var(--color-title);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1.5;
  transition-property: box-shadow, background-color, color, transform;
  transition-duration: var(--duration);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  min-width: 120px;
}

.social-btn:hover {
  color: var(--color-title);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-l);
}

.social-btn .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.social-btn span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Colores específicos para cada red social */
.facebook-btn {
  background: linear-gradient(140deg, #1877F2, #0D5FCC);
  border-color: #1877F2;
}

.facebook-btn:hover {
  background: linear-gradient(140deg, #0D5FCC, #0A4BB8);
  box-shadow: 0px 8px 17px 2px rgba(24, 119, 242, 0.3), 0px 3px 14px 2px rgba(24, 119, 242, 0.2);
}

.instagram-btn {
  background: linear-gradient(140deg, #E4405F, #C13584);
  border-color: #E4405F;
}

.instagram-btn:hover {
  background: linear-gradient(140deg, #C13584, #A02A6B);
  box-shadow: 0px 8px 17px 2px rgba(228, 64, 95, 0.3), 0px 3px 14px 2px rgba(228, 64, 95, 0.2);
}

.tiktok-btn {
  background: linear-gradient(140deg, #000000, #333333);
  border-color: #000000;
}

.tiktok-btn:hover {
  background: linear-gradient(140deg, #333333, #555555);
  box-shadow: 0px 8px 17px 2px rgba(0, 0, 0, 0.4), 0px 3px 14px 2px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
  background: linear-gradient(140deg, #25D366, #1DA851);
  border-color: #25D366;
}

.whatsapp-btn:hover {
  background: linear-gradient(140deg, #1DA851, #1A9B47);
  box-shadow: 0px 8px 17px 2px rgba(37, 211, 102, 0.3), 0px 3px 14px 2px rgba(37, 211, 102, 0.2);
}

.download-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-title);
  margin: 0;
  font-family: "Akira Expanded", sans-serif;
}

.download-subtitle {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.download-btn-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition-property: box-shadow, background-color, color;
  transition-duration: var(--duration);
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--player-bg-transparent);
  backdrop-filter: blur(10px);
  color: var(--color-title);
  font-weight: 700;
  text-transform: uppercase;
}

.download-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-l);
  text-decoration: none;
  color: var(--color-title);
}

.ios-btn-large {
  background: linear-gradient(140deg, #007AFF, #0051D5);
  border-color: #007AFF;
}

.ios-btn-large:hover {
  background: linear-gradient(140deg, #0051D5, #003D99);
  box-shadow: 0px 8px 17px 2px rgba(0, 122, 255, 0.3), 0px 3px 14px 2px rgba(0, 122, 255, 0.2);
}

.android-btn-large {
  background: linear-gradient(140deg, #00C851, #00A041);
  border-color: #00C851;
}

.android-btn-large:hover {
  background: linear-gradient(140deg, #00A041, #007A31);
  box-shadow: 0px 8px 17px 2px rgba(0, 200, 81, 0.3), 0px 3px 14px 2px rgba(0, 200, 81, 0.2);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--player-bg-transparent);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-icon .i {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  color: var(--color-title);
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-small-text {
  font-size: 0.75rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1;
}

.btn-large-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-title);
  margin: 0;
  line-height: 1;
}

/* Animaciones */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Responsive para la sección de descarga y redes sociales */
@media (max-width: 768px) {
  .download-social-section,
  .download-section {
    padding: 1.5rem;
    max-width: 400px;
  }
  
  .download-title {
    font-size: 1.25rem;
  }
  
  .download-subtitle {
    font-size: 0.9rem;
  }
  
  .download-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .download-btn-large {
    min-width: auto;
    width: 100%;
    justify-content: center;
  }
  
  .social-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .social-btn {
    min-width: auto;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .download-section {
    padding: 1rem;
    max-width: 350px;
  }
  
  .download-btn-large {
    padding: 0.8rem 1rem;
    gap: 0.8rem;
  }
  
  .btn-icon {
    width: 35px;
    height: 35px;
  }
  
  .btn-icon .i {
    width: 20px;
    height: 20px;
  }
}