.lgla-player {
  position: relative;
  overflow: hidden;
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.20), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,246,255,0.92));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  color: #0f172a;
  font-family: inherit;
  box-sizing: border-box;
  backdrop-filter: blur(14px);
}

.lgla-player::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(37,99,235,0.16), rgba(14,165,233,0.08), rgba(34,197,94,0.09));
  opacity: 0.7;
}

.lgla-player * {
  position: relative;
  box-sizing: border-box;
}

.lgla-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lgla-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lgla-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f3460, #2563eb 55%, #06b6d4);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
  font-size: 15px;
}

.lgla-title {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.lgla-subtitle,
.lgla-badge,
.lgla-note {
  display: none !important;
}

.lgla-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 10px 0 14px;
}

.lgla-btn,
.lgla-rate,
.lgla-voice {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  font: inherit;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.06);
}

.lgla-btn {
  cursor: pointer;
  padding: 9px 15px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.lgla-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  filter: saturate(1.08);
}

.lgla-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.lgla-play {
  background: linear-gradient(135deg, #0f3460, #2563eb 56%, #06b6d4);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
}

.lgla-pause {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,246,255,0.96));
}

.lgla-stop {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(254,242,242,0.96));
}

.lgla-restart {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,253,244,0.96));
}

.lgla-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.74);
}

.lgla-rate,
.lgla-voice {
  padding: 6px 10px;
  max-width: 260px;
  outline: none;
}

.lgla-rate:focus,
.lgla-voice:focus,
.lgla-btn:focus {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.lgla-progress-wrap {
  margin: 8px 0 10px;
}

.lgla-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.10);
}

.lgla-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f3460, #2563eb, #06b6d4, #22c55e);
  transition: width 0.25s ease;
}

.lgla-status {
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.78);
}

@media (max-width: 640px) {
  .lgla-player {
    padding: 15px;
    border-radius: 20px;
  }

  .lgla-header {
    margin-bottom: 12px;
  }

  .lgla-controls {
    align-items: stretch;
  }

  .lgla-btn {
    flex: 1 1 calc(50% - 9px);
  }

  .lgla-label,
  .lgla-rate,
  .lgla-voice {
    width: 100%;
  }

  .lgla-rate,
  .lgla-voice {
    max-width: none;
  }
}
